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

15 lines
348 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)
newenv = {'PYTHONPATH': scriptfolder}
subprocess.Popen([sys.executable, '-m', 'qt.{{edition}}.start'], env=newenv)
if __name__ == '__main__':
sys.exit(main())