Lines Matching refs:env
545 """execle(file, *args, env)
548 environment env, replacing the current process. """
549 env = args[-1]
550 execve(file, args[:-1], env)
560 """execlpe(file, *args, env)
563 with argument list args and environment env, replacing the current
565 env = args[-1]
566 execvpe(file, args[:-1], env)
576 def execvpe(file, args, env):
577 """execvpe(file, args, env)
580 with argument list args and environment env, replacing the
583 _execvpe(file, args, env)
587 def _execvpe(file, args, env=None):
588 if env is not None:
590 argrest = (args, env)
594 env = environ
600 path_list = get_exec_path(env)
619 def get_exec_path(env=None):
623 *env* must be an environment variable dict or None. If *env* is None,
631 if env is None:
632 env = environ
640 path_list = env.get('PATH')
646 path_listb = env[b'PATH']
652 "env cannot contain 'PATH' and b'PATH' keys")
847 def _spawnvef(mode, file, args, env, func):
857 if env is None:
860 func(file, args, env)
883 def spawnve(mode, file, args, env):
884 """spawnve(mode, file, args, env) -> integer
891 return _spawnvef(mode, file, args, env, execve)
905 def spawnvpe(mode, file, args, env):
906 """spawnvpe(mode, file, args, env) -> integer
913 return _spawnvef(mode, file, args, env, execvpe)
933 """spawnle(mode, file, *args, env) -> integer
940 env = args[-1]
941 return spawnve(mode, file, args[:-1], env)
961 """spawnlpe(mode, file, *args, env) -> integer
968 env = args[-1]
969 return spawnvpe(mode, file, args[:-1], env)