From 66dd8b6203c5e64c827cbb91956c575763fa2df1 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Tue, 26 Dec 2006 11:49:48 -0800 Subject: [PATCH] [RARSLAVE] Fix directory switching Important bugfix. This fixes the directory switching code in the run_command() function. Without this fix, the directory never gets switched as expected. Signed-off-by: Ira W. Snyder --- rarslave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rarslave.py b/rarslave.py index 53f0b41..93debab 100644 --- a/rarslave.py +++ b/rarslave.py @@ -133,7 +133,7 @@ def run_command (cmd, indir=None): if indir != None: assert os.path.isdir (indir) # MUST be a directory! - os.chdir (pwd) + os.chdir (indir) # FIXME: re-enable this after testing print 'RUNNING (%s): %s' % (indir, cmd) -- 2.25.1