rez.system#
- class rez.system.System#
Bases:
object
Access to underlying system data.
- property rez_version#
Returns the current version of Rez.
- platform()#
Get the current platform.
- Returns:
The current platform (windows, linux, osx, etc).
- arch()#
Get the current architecture.
- Returns:
The current architecture (x86_64, i386, etc).
- os()#
Get the current operating system.
- Returns:
The current operating system (Ubuntu-22.04, CentOS-7.8, windows-6.1.7600.sp1, etc).
- variant()#
Returns a list of the form
["platform-X", "arch-X", "os-X"]
suitable for use as a variant in a system-dependent package.
- shell()#
Get the current shell.
- Returns:
The current shell this process is running in (bash, tcsh, pwsh, etc). On Windows, the return value is always “powershell”.
- user()#
Get the current user.
- home()#
Get the home directory for the current user.
- fqdn()#
Returns the fully qualified domain name (FQDN) of the current machine, eg
somesvr.somestudio.com
.
- hostname()#
Returns the machine hostname, eg
somesvr
.
- domain()#
Returns the domain, eg
somestudio.com
.
- rez_bin_path()#
Get path containing rez binaries, or None if no binaries are available, or Rez is not a production install.
- property is_production_rez_install#
Return True if this is a production rez install.
- property selftest_is_running#
Return True if tests are running via
rez-selftest
tool.
- get_summary_string()#
Get a string summarising the state of Rez as a whole.
- clear_caches(hard=False)#
Clear all caches in Rez.
Rez caches package contents and iteration during a python session. Thus newly released packages, and changes to existing packages, may not be picked up. You need to clear the cache for these changes to become visible.
- Parameters:
hard (bool) – Perform a ‘hard’ cache clear. This just means that the memcached cache is also cleared. Generally this is not needed. This option is for debugging purposes.