# HG changeset patch # User Jeff Hammel # Date 1294787267 28800 # Node ID a7ee8eacf605e6370515d40788fbf572207b15da # Parent d94fbaac7c2c5ac477133f9d70b009cf5e39a4ef fix a potential bug(?) diff -r d94fbaac7c2c -r a7ee8eacf605 autobot/process/factory.py --- a/autobot/process/factory.py Tue Jan 11 15:04:31 2011 -0800 +++ b/autobot/process/factory.py Tue Jan 11 15:07:47 2011 -0800 @@ -31,9 +31,8 @@ BuildFactory.__init__(self) self.addStep(CreateVirtualenv(name)) - self.addStep(ShellCommand(command=['mkdir', '-p', 'src'], - workdir=name)) - # TODO: set properities: + + # set properities related to the virtualenv: # - virtualenv location # - scripts location # - python location @@ -47,6 +46,11 @@ workdir=WithProperties('%(virtualenv)s/%(scripts)s'), command=find('python', 'python.exe'))) + # add a source directory + self.addStep(ShellCommand(command=['mkdir', '-p', 'src'], + workdir=WithProperties('%(virtualenv)s')) + + # clone hg repositories for hg_source in hg_sources: self.addStep(ShellCommand(command=['hg', 'clone', hg_source],