[RARSLAVE] Fix directory switching
authorIra W. Snyder <devel@irasnyder.com>
Tue, 26 Dec 2006 19:49:48 +0000 (11:49 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Tue, 26 Dec 2006 19:49:48 +0000 (11:49 -0800)
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 <devel@irasnyder.com>
rarslave.py

index 53f0b41..93debab 100644 (file)
@@ -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)