From e72f8b8d4edd71e24cf74c798c6655b4eafa0e62 Mon Sep 17 00:00:00 2001 From: ShigemoriHakura <62388797+ShigemoriHakura@users.noreply.github.com> Date: Sat, 6 May 2023 11:09:52 +0800 Subject: [PATCH] fix path under windows --- software/script/chameleon_cli_unit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index dd480a8..5639b32 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -85,10 +85,11 @@ class BaseCLIUnit: raise NotImplementedError("Please implement this") @staticmethod - def sub_process(cmd, cwd=os.path.abspath("/bin/"), ): + def sub_process(cmd, cwd=os.path.abspath("bin/"), ): class ShadowProcess: def __init__(self): self.time_start = timeit.default_timer() + print(cwd + "/" + cmd) self._process = subprocess.Popen( cmd, cwd=cwd, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE )