Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | _Environ |
Functions | |
def | makedirs |
def | removedirs |
def | renames |
def | execl |
def | execle |
def | execlp |
def | execlpe |
def | execvp |
def | execvpe |
def | unsetenv |
def | getenv |
def | spawnv |
def | spawnve |
def | spawnvp |
def | spawnvpe |
def | spawnl |
def | spawnle |
def | spawnlp |
def | spawnlpe |
def | popen2 |
def | popen3 |
def | popen4 |
Variables | |
_names = sys.builtin_module_names | |
altsep = None | |
list | __all__ |
string | name = 'posix' |
string | linesep = '\n' |
string | curdir = '.' |
string | defpath = ':/bin:/usr/bin' |
path = posixpath | |
string | extsep = '/' |
dictionary | environ = {} |
_notfound = None | |
int | P_WAIT = 0 |
int | P_NOWAIT = 1 |
def os.execl | ( | file, | |
args | |||
) |
execl(file, *args) Execute the executable file with argument list args, replacing the current process.
def os.execle | ( | file, | |
args | |||
) |
execle(file, *args, env) Execute the executable file with argument list args and environment env, replacing the current process.
def os.execlp | ( | file, | |
args | |||
) |
def os.execlpe | ( | file, | |
args | |||
) |
def os.execvp | ( | file, | |
args | |||
) |
execp(file, args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. args may be a list or tuple of strings.
def os.execvpe | ( | file, | |
args, | |||
env | |||
) |
def os.getenv | ( | key, | |
default = None |
|||
) |
Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default.
def os.makedirs | ( | name, | |
mode = 0777 |
|||
) |
def os.popen2 | ( | cmd, | |
mode = "t" , |
|||
bufsize = -1 |
|||
) |
def os.popen3 | ( | cmd, | |
mode = "t" , |
|||
bufsize = -1 |
|||
) |
def os.popen4 | ( | cmd, | |
mode = "t" , |
|||
bufsize = -1 |
|||
) |
def os.removedirs | ( | name) |
removedirs(path) -> None Super-rmdir; remove a leaf directory and empty all intermediate ones. Works like rmdir except that, if the leaf directory is successfully removed, directories corresponding to rightmost path segments will be pruned way until either the whole path is consumed or an error occurs. Errors during this latter phase are ignored -- they generally mean that a directory was not empty.
Definition at line 205 of file os.py.
def os.renames | ( | old, | |
new | |||
) |
renames(old, new) -> None Super-rename; create directories as necessary and delete any left empty. Works like rename, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned way until either the whole path is consumed or a nonempty directory is found. Note: this function can fail with the new directory structure made if you lack permissions needed to unlink the leaf directory or file.
Definition at line 227 of file os.py.
References makedirs(), and removedirs().
def os.spawnl | ( | mode, | |
file, | |||
args | |||
) |
spawnl(mode, file, *args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 523 of file os.py.
References spawnv().
def os.spawnle | ( | mode, | |
file, | |||
args | |||
) |
spawnle(mode, file, *args, env) -> integer Execute file with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 532 of file os.py.
References spawnve().
def os.spawnlp | ( | mode, | |
file, | |||
args | |||
) |
spawnlp(mode, file, *args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 546 of file os.py.
References spawnvp().
def os.spawnlpe | ( | mode, | |
file, | |||
args | |||
) |
spawnlpe(mode, file, *args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 556 of file os.py.
References spawnvpe().
def os.spawnv | ( | mode, | |
file, | |||
args | |||
) |
spawnv(mode, file, args) -> integer Execute file with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 478 of file os.py.
def os.spawnve | ( | mode, | |
file, | |||
args, | |||
env | |||
) |
spawnve(mode, file, args, env) -> integer Execute file with arguments from args in a subprocess with the specified environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 487 of file os.py.
def os.spawnvp | ( | mode, | |
file, | |||
args | |||
) |
spawnvp(mode, file, args) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 499 of file os.py.
def os.spawnvpe | ( | mode, | |
file, | |||
args, | |||
env | |||
) |
spawnvpe(mode, file, args, env) -> integer Execute file (which is looked for along $PATH) with arguments from args in a subprocess with the supplied environment. If mode == P_NOWAIT return the pid of the process. If mode == P_WAIT return the process's exit code if it exits normally; otherwise return -SIG, where SIG is the signal that killed it.
Definition at line 509 of file os.py.
def os.unsetenv | ( | key) |
list __all__ |