no need to set an environment, use execvp

This commit is contained in:
Karsten Hopp
2016-07-05 13:36:02 +02:00
parent a9bcef7d29
commit 740a2f576e

View File

@@ -94,8 +94,7 @@ class SCM(object):
try:
if chdir:
os.chdir(chdir)
environ = os.environ.copy()
os.execvpe(path, args, environ)
os.execvp(path, args)
except:
msg = ''.join(traceback.format_exception(*sys.exc_info()))
print(msg)