1
0
镜像来自 https://github.com/arsenetar/dupeguru.git synced 2026-03-14 12:21:38 +00:00

Fixed qt run template so that the current environment is sent to the new python process.

This commit is contained in:
Virgil Dupras
2010-10-05 00:36:20 -07:00
父節點 b217309618
當前提交 562123b219

查看文件

@@ -8,8 +8,8 @@ import subprocess
def main(): def main():
scriptpath = op.abspath(__file__) scriptpath = op.abspath(__file__)
scriptfolder = op.dirname(scriptpath) scriptfolder = op.dirname(scriptpath)
newenv = {'PYTHONPATH': scriptfolder} os.environ['PYTHONPATH'] = scriptfolder
subprocess.Popen([sys.executable, '-m', 'qt.{{edition}}.start'], env=newenv) subprocess.Popen([sys.executable, '-m', 'qt.{{edition}}.start'], env=os.environ)
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())