# HG changeset patch # User cmlenz # Date 1120649561 0 # Node ID 8c7303f0b3d669859d2703a66807dfa41be0902a # Parent ffa1ffd8c7dbbfdd13a5d8db8c179476fcdf0d07 On windows, switch to the requested directory before executing a recipe command. diff --git a/bitten/util/cmdline.py b/bitten/util/cmdline.py --- a/bitten/util/cmdline.py +++ b/bitten/util/cmdline.py @@ -56,6 +56,9 @@ args[idx] = '"%s"' % arg logging.debug('Executing %s', args) + if self.cwd: + os.chdir(self.cwd) + import tempfile out_name = tempfile.mktemp() err_name = tempfile.mktemp()