22 lines
461 B
Python
22 lines
461 B
Python
import shutil
|
|
import sys
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
sys.argv.append('--dev')
|
|
|
|
import flandre
|
|
from flandre.launcher import launch_from_file
|
|
|
|
|
|
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'])
|
|
launch_from_file(Path(__file__).parent / 'dev.toml')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|