1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-17 20:49:02 +00:00
dupeguru/run_template_qt.py

16 lines
355 B
Python

#!/usr/bin/env python3
import sys
import os
import os.path as op
import subprocess
def main():
scriptpath = op.abspath(__file__)
scriptfolder = op.dirname(scriptpath)
os.environ['PYTHONPATH'] = scriptfolder
subprocess.Popen([sys.executable, '-m', 'qt.{{edition}}.start'], env=os.environ)
if __name__ == '__main__':
sys.exit(main())