fix path under windows

This commit is contained in:
ShigemoriHakura
2023-05-06 11:09:52 +08:00
parent 11c102715e
commit e72f8b8d4e
+2 -1
View File
@@ -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
)