| Index: recipe_modules/step/api.py
|
| diff --git a/recipe_modules/step/api.py b/recipe_modules/step/api.py
|
| index cc7e9958d504ede45b2ead18114a09a9bea57f94..f9b7a52e6b2776f95e5ea93c30135a091bbd2ab7 100644
|
| --- a/recipe_modules/step/api.py
|
| +++ b/recipe_modules/step/api.py
|
| @@ -153,6 +153,7 @@
|
| command wrapper.
|
| timeout: If supplied, the recipe engine will kill the step after the
|
| specified number of seconds.
|
| + cwd (str or None): absolute path to working directory for the command
|
| allow_subannotations (bool): if True, lets the step emit its own
|
| annotations. NOTE: Enabling this can cause some buggy behavior. Please
|
| strongly consider using step_result.presentation instead. If you have
|
| @@ -214,9 +215,8 @@
|
| name = "%s (%d)" % (name, step_count)
|
| self._seen_steps.add(full_name)
|
|
|
| - cwd = self.get_from_context('cwd')
|
| - if cwd is not None and cwd != self.m.path['start_dir']:
|
| - kwargs['cwd'] = cwd
|
| + if 'cwd' not in kwargs:
|
| + kwargs['cwd'] = self.get_from_context('cwd')
|
| kwargs['env'] = self.get_from_context('env', {})
|
| if self._prefix_path:
|
| ps = self.m.path.pathsep
|
|
|