High-level system inquiries for user information and environment derived paths.
All information is retrieved from the system when invoked.
os
operator0
tools0
files0
_path0
_path = tools.cachedcalls(16)(tools.compose(operator.methodcaller('delimit'), files.Path.from_absolute))
_dirs0
_dirs = tools.cachedcalls(2)(operator.methodcaller('split', os.pathsep))
paths0files.Path
paths()
Select paths present in the PATH variable.
executables0files.Path
executables(exename)
Select executable paths from the environment, PATH.
Iterate over the directories listed in PATH and yield paths that exist when the given exename is extended on the directory.
The produced files.Path instances may refer to files of any type. Paths referring to broken links will not be included.
home516%files.Path
home()
Retrieve the user's home directory from the environment, HOME.
If the environment variable is not set, the pw_dir field will be retrieved using pwd.
username0str
username()
Retrieve the user's name.
usertitle0str
usertitle()
Retrieve the user's title; the long name associated with the user.
The pw_gecos field is retrieved using pwd without modification. If the system has no such concept or it cannot be resolved, None is returned.
shell0files.Path
shell()
Retrieve the path to the user's login shell.
If the system has no such concept or it cannot be resolved, None is returned.
hostname325%str
hostname()
Retrieve the hostname using the POSIX gethostname(2) call.
frequency325%int
frequency()
Retrieve the clock ticks necessary for calculating processing usage from the POSIX sysconf call with SC_CLK_TCK.
platform130%
platform()
Create an execution.Platform instance using the environment.