Lines Matching +refs:env +refs:PATH
321 env = args[-1]
322 execve(file, args[:-1], env)
337 env = args[-1]
338 execvpe(file, args[:-1], env)
348 def execvpe(file, args, env): argument
355 _execvpe(file, args, env)
359 def _execvpe(file, args, env=None): argument
360 if env is not None:
362 argrest = (args, env)
366 env = environ
372 if 'PATH' in env:
373 envpath = env['PATH']
376 PATH = envpath.split(pathsep)
379 for dir in PATH:
531 def _spawnvef(mode, file, args, env, func): argument
537 if env is None:
540 func(file, args, env)
567 def spawnve(mode, file, args, env): argument
575 return _spawnvef(mode, file, args, env, execve)
589 def spawnvpe(mode, file, args, env): argument
597 return _spawnvef(mode, file, args, env, execvpe)
620 env = args[-1]
621 return spawnve(mode, file, args[:-1], env)
648 env = args[-1]
649 return spawnvpe(mode, file, args[:-1], env)