fix molecule.utils.remove_path_sandbox
paths did not get expanded when using list arguments, so try using shell = True and pass a string
This commit is contained in:
+2
-2
@@ -76,9 +76,9 @@ def remove_path(path):
|
||||
return subprocess.call('rm -rf %s' % (path,), shell = True)
|
||||
|
||||
def remove_path_sandbox(path, sandbox_env):
|
||||
p = subprocess.Popen(["sandbox", "rm", "-rf", path],
|
||||
p = subprocess.Popen(' '.join(["sandbox", "rm", "-rf", path]),
|
||||
stdout = sys.stdout, stderr = sys.stderr,
|
||||
env = sandbox_env
|
||||
env = sandbox_env, shell = True
|
||||
)
|
||||
return p.wait()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user