From 34a8fa6a3951ed23ee481a04c26e974a50a704d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Fri, 26 Oct 2018 00:00:02 +0000 Subject: [PATCH] common: fix cwd and env on command printing --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index 5272089..ebd7ca4 100644 --- a/common.py +++ b/common.py @@ -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: