Dave Abrahams committed 42ef330
  • Participants
  • Parent commits afc14e6
  • Branches trunk

Comments (0)

Files changed (1)


     def __init__(self, base_path=None, template_path=None,
                  environ=None, cwd=None, start_clear=True,
                  ignore_paths=None, ignore_hidden=True,
-                 capture_temp=False, assert_no_temp=False):
+                 capture_temp=False, assert_no_temp=False, split_cmd=True):
         Creates an environment.  ``base_path`` is used as the current
         working directory, and generally where changes are looked for.
         self.ignore_paths = ignore_paths or []
         self.ignore_hidden = ignore_hidden
+        self.split_cmd = split_cmd
         if assert_no_temp and not self.capture_temp:
             raise TypeError(
                 'You cannot use assert_no_temp unless capture_temp=True')
         args = map(str, args)
         assert not kw, (
             "Arguments not expected: %s" % ', '.join(kw.keys()))
-        if ' ' in script:
+        if self.split_cmd and ' ' in script:
             if args:
                 # Then treat this as a script that has a space in it