From 562123b21900322f6805863fe23f3ad5979e9e06 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 5 Oct 2010 00:36:20 -0700 Subject: [PATCH] Fixed qt run template so that the current environment is sent to the new python process. --- run_template_qt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())