|
@@ -159,14 +159,11 @@ class PythonExecutor:
|
|
|
to make possible unit testing
|
|
|
"""
|
|
|
close_fds = None if OSCheck.get_os_family() == OSConst.WINSRV_FAMILY else True
|
|
|
-
|
|
|
+ command_env = dict(os.environ)
|
|
|
if OSCheck.get_os_family() == OSConst.WINSRV_FAMILY:
|
|
|
- command_env = dict(os.environ)
|
|
|
command_env["PYTHONPATH"] = os.pathsep.join(sys.path)
|
|
|
for k, v in command_env.iteritems():
|
|
|
command_env[k] = str(v)
|
|
|
- else:
|
|
|
- command_env = None
|
|
|
|
|
|
return subprocess.Popen(command,
|
|
|
stdout=tmpout,
|