1
0
의 미러 https://github.com/arsenetar/dupeguru.git synced 2025-07-08 08:23:19 +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():
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())