rez.utils.platform#

class rez.utils.platform_.Platform#

Abstraction of a platform.

__init__()#
terminal_emulator_command()#

Returns the command to use to run another command in a separate terminal emulator.

The command is expected to have the target command and arguments appended to it.

Returns:

List of strings, or None if the terminal emulator could not be determined.

new_session_popen_args()#

Return the arguments to pass to subprocess.Popen in order to execute a shell in a new process group.

Returns:

kwargs to pass to subprocess.Popen.

Return type:

Dict

image_viewer()#

Returns the system default image viewer.

If None, rez will use the web browser to display images.

editor()#

Returns the system default text editor.

difftool()#

Return the system default file diff tool.

tmpdir()#

Return system default temporary directory path.

physical_cores()#

Return the number of physical cpu cores on the system.

logical_cores()#

Return the number of cpu cores as reported to the os.

May be different from physical_cores if, ie, intel’s hyperthreading is enabled.

Create a symbolic link pointing to source named link_name.

class rez.utils.platform_.LinuxPlatform#
class rez.utils.platform_.OSXPlatform#
class rez.utils.platform_.WindowsPlatform#

Create a symbolic link pointing to source named link_name.