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:
Fabio Erculiani
2009-03-26 15:31:04 +01:00
parent 7fcf51a5f4
commit bcbbc5aace
+2 -2
View File
@@ -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()