Lines Matching refs:file
15 - os.devnull is the file path of the null device ('/dev/null', etc.)
266 file.
295 To get a full path (which begins with top) to a file or directory in
439 and `dirfd` is a file descriptor referring to the directory `dirpath`.
444 If dir_fd is not None, it should be a file descriptor open to a directory,
449 Since fwalk() yields file descriptors, those are only valid until the
480 # Note: This uses O(depth of the directory tree) file descriptors: if
537 def execl(file, *args):
538 """execl(file, *args)
540 Execute the executable file with argument list args, replacing the
542 execv(file, args)
544 def execle(file, *args):
545 """execle(file, *args, env)
547 Execute the executable file with argument list args and
550 execve(file, args[:-1], env)
552 def execlp(file, *args):
553 """execlp(file, *args)
555 Execute the executable file (which is searched for along $PATH)
557 execvp(file, args)
559 def execlpe(file, *args):
560 """execlpe(file, *args, env)
562 Execute the executable file (which is searched for along $PATH)
566 execvpe(file, args[:-1], env)
568 def execvp(file, args):
569 """execvp(file, args)
571 Execute the executable file (which is searched for along $PATH)
574 _execvpe(file, args)
576 def execvpe(file, args, env):
577 """execvpe(file, args, env)
579 Execute the executable file (which is searched for along $PATH)
583 _execvpe(file, args, env)
587 def _execvpe(file, args, env=None):
596 if path.dirname(file):
597 exec_func(file, *argrest)
602 file = fsencode(file)
605 fullname = path.join(dir, file)
809 On Windows, use 'strict' error handler if the file system encoding is
821 Windows, use 'strict' error handler if the file system encoding is
847 def _spawnvef(mode, file, args, env, func):
858 func(file, args)
860 func(file, args, env)
874 def spawnv(mode, file, args):
875 """spawnv(mode, file, args) -> integer
877 Execute file with arguments from args in a subprocess.
881 return _spawnvef(mode, file, args, None, execv)
883 def spawnve(mode, file, args, env):
884 """spawnve(mode, file, args, env) -> integer
886 Execute file with arguments from args in a subprocess with the
891 return _spawnvef(mode, file, args, env, execve)
895 def spawnvp(mode, file, args):
896 """spawnvp(mode, file, args) -> integer
898 Execute file (which is looked for along $PATH) with arguments from
903 return _spawnvef(mode, file, args, None, execvp)
905 def spawnvpe(mode, file, args, env):
906 """spawnvpe(mode, file, args, env) -> integer
908 Execute file (which is looked for along $PATH) with arguments from
913 return _spawnvef(mode, file, args, env, execvpe)
923 def spawnl(mode, file, *args):
924 """spawnl(mode, file, *args) -> integer
926 Execute file with arguments from args in a subprocess.
930 return spawnv(mode, file, args)
932 def spawnle(mode, file, *args):
933 """spawnle(mode, file, *args, env) -> integer
935 Execute file with arguments from args in a subprocess with the
941 return spawnve(mode, file, args[:-1], env)
950 def spawnlp(mode, file, *args):
951 """spawnlp(mode, file, *args) -> integer
953 Execute file (which is looked for along $PATH) with arguments from
958 return spawnvp(mode, file, args)
960 def spawnlpe(mode, file, *args):
961 """spawnlpe(mode, file, *args, env) -> integer
963 Execute file (which is looked for along $PATH) with arguments from
969 return spawnvpe(mode, file, args[:-1], env)
999 # Helper for popen() -- a proxy for a file whose close waits for the process
1074 """Abstract base class for implementing the file system path protocol."""
1078 """Return the file system path representation of the object."""