parameters: (self, args, require_unix_environment)
return_statement: return [_current_shell, '-c', cline]
docstring: Adjust command arguments to run in the necessary environment.
  
          This exists mainly to facilitate execution of programs requiring a *NIX
          shell when running on Windows. The caller specifies whether a shell
          environment is required. If it is and we are running on Windows but
          aren't running in the UNIX-like msys environment, then we rewrite the
          command to execute via a shell.
docstring_summary: Adjust command arguments to run in the necessary environment.
docstring_tokens: Adjust command arguments to run in the necessary environment .
function: def _normalize_command(self, args, require_unix_environment):
          """Adjust command arguments to run in the necessary environment.
  
          This exists mainly to facilitate execution of programs requiring a *NIX
          shell when running on Windows. The caller specifies whether a shell
          environment is required. If it is and we are running on Windows but
          aren't running in the UNIX-like msys environment, then we rewrite the
          command to execute via a shell.
          """
          assert isinstance(args, list) and len(args)
  
          if not require_unix_environment or not _in_msys:
              return args
  
          # Always munge Windows-style into Unix style for the command.
          prog = args[0].replace('\\', '/')
  
          # PyMake removes the C: prefix. But, things seem to work here
          # without it. Not sure what that's about.
  
          # We run everything through the msys shell. We need to use
          # '-c' and pass all the arguments as one argument because that is
          # how sh works.
          cline = subprocess.list2cmdline([prog] + args[1:])
          return [_current_shell, '-c', cline]
function_tokens: def _normalize_command ( self , args , require_unix_environment ) : assert isinstance ( args , list ) and len ( args ) if not require_unix_environment or not _in_msys : return args # Always munge Windows-style into Unix style for the command. prog = args [ 0 ] . replace ( '\\' , '/' ) # PyMake removes the C: prefix. But, things seem to work here # without it. Not sure what that's about. # We run everything through the msys shell. We need to use # '-c' and pass all the arguments as one argument because that is # how sh works. cline = subprocess . list2cmdline ( [ prog ] + args [ 1 : ] ) return [ _current_shell , '-c' , cline ]