changeset 77:8c7303f0b3d6

On windows, switch to the requested directory before executing a recipe command.
author cmlenz
date Wed, 06 Jul 2005 11:32:41 +0000
parents ffa1ffd8c7db
children 001f77d05cdc
files bitten/util/cmdline.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()
Copyright (C) 2012-2017 Edgewall Software