Argument cwd passed to ProcessInThread is ignored. Fixes #51
authorFrederic Massart <fred@moodle.com>
Thu, 3 Oct 2013 02:41:54 +0000 (10:41 +0800)
committerFrederic Massart <fred@moodle.com>
Thu, 3 Oct 2013 02:41:58 +0000 (10:41 +0800)
lib/tools.py

index 6762b7e..2d25845 100644 (file)
@@ -168,7 +168,7 @@ class ProcessInThread(threading.Thread):
         if type(cmd) != 'list':
             cmd = shlex.split(str(cmd))
         self.cmd = cmd
-        self.cwd = None
+        self.cwd = cwd
         self.stdout = stdout
         self.stderr = stderr