diff --git a/run_template_qt.py b/run_template_qt.py index 5c96fee3..24a0aece 100644 --- a/run_template_qt.py +++ b/run_template_qt.py @@ -8,8 +8,8 @@ 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) + os.environ['PYTHONPATH'] = scriptfolder + subprocess.Popen([sys.executable, '-m', 'qt.{{edition}}.start'], env=os.environ) if __name__ == '__main__': - sys.exit(main()) \ No newline at end of file + sys.exit(main())