hpcflow.sdk.runtime.RunTimeInfo#

class hpcflow.sdk.runtime.RunTimeInfo(name, package_name, version, logger)#

Bases: PrettyPrinter

Get useful run-time information, including the executable name used to invoke the CLI, in the case a PyInstaller-built executable was used.

sys_prefix#

From sys.prefix. If running in a virtual environment, this will point to the environment directory. If not running in a virtual environment, this will point to the Python installation root.

Type:

str

sys_base_prefix#

From sys.base_prefix. This will be equal to sys_prefix (sys.prefix) if not running within a virtual environment. However, if running within a virtual environment, this will be the Python installation directory, and sys_prefix will be equal to the virtual environment directory.

Type:

str

Methods

get_activate_env_command

get_deactivate_env_command

Attributes

invocation_command

Get the command that was used to invoke this instance of the app.

get_activate_env_command()#
get_deactivate_env_command()#
property invocation_command#

Get the command that was used to invoke this instance of the app.