From bcbbc5aace908e356fcdc3926b8ea85ea8878328 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 26 Mar 2009 15:31:04 +0100 Subject: [PATCH] fix molecule.utils.remove_path_sandbox paths did not get expanded when using list arguments, so try using shell = True and pass a string --- molecule/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/molecule/utils.py b/molecule/utils.py index 4ec7110..5488015 100644 --- a/molecule/utils.py +++ b/molecule/utils.py @@ -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()