ExecutionEnvironment
from panda3d.core import ExecutionEnvironment
- class ExecutionEnvironment
Bases:
DTOOL_SUPER_BASE
Encapsulates access to the environment variables and command-line arguments at the time of execution. This is encapsulated to support accessing these things during static init time, which seems to be risky at best.
Inheritance diagram
- __init__(*args, **kwargs)
- args = <ExecutionEnvironment.args[22] of <NULL>>
- binary_name = '/opt/hostedtoolcache/Python/3.12.11/x64/bin/python3.12'
- clearShadow()
C++ Interface: clear_shadow(str var)
- /**
Removes a value set by a previous call to shadow_environment_variable(),
and lets the actual value of the variable show again.
*/
- clear_shadow()
C++ Interface: clear_shadow(str var)
- /**
Removes a value set by a previous call to shadow_environment_variable(),
and lets the actual value of the variable show again.
*/
- cwd = Filename('/home/runner/work/panda3d-docs/panda3d-docs')
- dtool_name = '/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/panda3d/libp3dtool.so.1.11'
- environment_variables = <ExecutionEnvironment.environment_variables[] of <NULL>>
- expandString()
C++ Interface: expand_string(str str)
- /**
Reads the string, looking for environment variable names marked by a $.
Expands all such variable names. A repeated dollar sign ($$) is mapped to
a single dollar sign.
Returns the expanded string.
*/
- expand_string()
C++ Interface: expand_string(str str)
- /**
Reads the string, looking for environment variable names marked by a $.
Expands all such variable names. A repeated dollar sign ($$) is mapped to
a single dollar sign.
Returns the expanded string.
*/
- getArg()
C++ Interface: get_arg(int n)
- /**
Returns the nth command-line argument. The index n must be in the range [0
parameter, not the binary name.
*/
- getBinaryName()
C++ Interface: get_binary_name()
- /**
Returns the name of the binary executable that started this program, if it
can be determined.
*/
- getDtoolName()
C++ Interface: get_dtool_name()
- /**
Returns the name of the libdtool DLL that is used in this program, if it
can be determined.
*/
- getEnvironmentVariable()
C++ Interface: get_environment_variable(str var)
- /**
Returns the definition of the indicated environment variable, or the empty
string if the variable is undefined.
*/
- getNumArgs()
C++ Interface: get_num_args()
- /**
Returns the number of command-line arguments available, not counting arg 0,
the binary name.
*/
- get_arg()
C++ Interface: get_arg(int n)
- /**
Returns the nth command-line argument. The index n must be in the range [0
parameter, not the binary name.
*/
- get_binary_name()
C++ Interface: get_binary_name()
- /**
Returns the name of the binary executable that started this program, if it
can be determined.
*/
- get_dtool_name()
C++ Interface: get_dtool_name()
- /**
Returns the name of the libdtool DLL that is used in this program, if it
can be determined.
*/
- get_environment_variable()
C++ Interface: get_environment_variable(str var)
- /**
Returns the definition of the indicated environment variable, or the empty
string if the variable is undefined.
*/
- get_num_args()
C++ Interface: get_num_args()
- /**
Returns the number of command-line arguments available, not counting arg 0,
the binary name.
*/
- hasEnvironmentVariable()
C++ Interface: has_environment_variable(str var)
- /**
Returns true if the indicated environment variable is defined.
*/
- has_environment_variable()
C++ Interface: has_environment_variable(str var)
- /**
Returns true if the indicated environment variable is defined.
*/
- setEnvironmentVariable()
C++ Interface: set_environment_variable(str var, str value)
- /**
Changes the definition of the indicated environment variable.
*/
- set_environment_variable()
C++ Interface: set_environment_variable(str var, str value)
- /**
Changes the definition of the indicated environment variable.
*/
- shadowEnvironmentVariable()
C++ Interface: shadow_environment_variable(str var, str value)
- /**
Changes the apparent definition of the indicated environment variable by
masking it within this class with a new value. This does not change the
actual environment variable, but future calls to get_environment_variable()
will return this new value.
*/
- shadow_environment_variable()
C++ Interface: shadow_environment_variable(str var, str value)
- /**
Changes the apparent definition of the indicated environment variable by
masking it within this class with a new value. This does not change the
actual environment variable, but future calls to get_environment_variable()
will return this new value.
*/