common: fix cwd and env on command printing

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-26 00:00:02 +00:00
parent bb1bb370a6
commit 34a8fa6a39

View File

@@ -470,7 +470,7 @@ def print_cmd(cmd, cwd=None, cmd_file=None, extra_env=None, extra_paths=None):
if type(cmd) is str:
cmd_string = cmd
else:
cmd_string = cmd_to_string(cmd, cwd=None, extra_env=None, extra_paths=None)
cmd_string = cmd_to_string(cmd, cwd=cwd, extra_env=extra_env, extra_paths=extra_paths)
print(this_module.command_prefix + cmd_string)
if cmd_file is not None:
with open(cmd_file, 'w') as f: