borgend/instance.py

changeset 120
109eaddc16e1
parent 97
96d5adbe0205
equal deleted inserted replaced
119:e5f29271089d 120:109eaddc16e1
79 # TODO: Of course, this will fail if the system needs the variables 79 # TODO: Of course, this will fail if the system needs the variables
80 # PYTHONPATH or PYTHONHOME set to certain values. 80 # PYTHONPATH or PYTHONHOME set to certain values.
81 if '_PY2APP_LAUNCHED_' in env: 81 if '_PY2APP_LAUNCHED_' in env:
82 val=env['_PY2APP_LAUNCHED_'] 82 val=env['_PY2APP_LAUNCHED_']
83 if val=='1': 83 if val=='1':
84 del env['PYTHONPATH'] 84 if 'PYTHONPATH' in env:
85 del env['PYTHONHOME'] 85 del env['PYTHONPATH']
86 if 'PYTHONHOME' in env:
87 del env['PYTHONHOME']
86 88
87 self.proc=Popen(cmd, env=env, stdout=PIPE, stderr=PIPE, stdin=PIPE) 89 self.proc=Popen(cmd, env=env, stdout=PIPE, stderr=PIPE, stdin=PIPE)
88 90
89 # We don't do passphrase input etc. 91 # We don't do passphrase input etc.
90 self.proc.stdin.close() 92 self.proc.stdin.close()

mercurial