2025-04-12 14:18:45 +08:00
|
|
|
import shutil
|
2025-04-12 01:33:06 +08:00
|
|
|
import sys
|
2025-04-12 14:18:45 +08:00
|
|
|
import subprocess
|
2025-04-12 01:29:38 +08:00
|
|
|
from pathlib import Path
|
2025-04-12 00:03:28 +08:00
|
|
|
|
2025-04-12 01:33:06 +08:00
|
|
|
sys.argv.append('--dev')
|
|
|
|
|
|
2025-04-12 14:18:45 +08:00
|
|
|
import flandre
|
2025-04-12 01:29:38 +08:00
|
|
|
from flandre.launcher import launch_from_file
|
2025-04-12 00:03:28 +08:00
|
|
|
|
2025-04-12 14:18:45 +08:00
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
if (pyuic6 := shutil.which('pyuic6')) is None:
|
|
|
|
|
print('pyuic6 is not installed')
|
|
|
|
|
return
|
|
|
|
|
subprocess.run([pyuic6, '-o', flandre.PYQT / 'Main.py', flandre.PYQT / 'Main.ui'])
|
2025-04-12 01:33:06 +08:00
|
|
|
launch_from_file(Path(__file__).parent / 'dev.toml')
|
2025-04-12 14:18:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|
main()
|