From: Ira W. Snyder Date: Tue, 26 Dec 2006 19:49:48 +0000 (-0800) Subject: [RARSLAVE] Fix directory switching X-Git-Tag: v2.0.0~56 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=66dd8b6203c5e64c827cbb91956c575763fa2df1;p=rarslave2.git [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 --- 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)