Internal environment
InternalEnvironment
Bases: Environment
Methods:
Name | Description |
---|---|
__init__ |
Use absolute path as name for micromamba to consider the activation from a folder path, not from a name |
launch |
Raise an exception. See |
execute |
Executes a function in the given module |
Source code in wetlands/internal_environment.py
__init__(path, environmentManager)
Use absolute path as name for micromamba to consider the activation from a folder path, not from a name
Source code in wetlands/internal_environment.py
launch(additionalActivateCommands={}, logOutputInThread=True)
Raise an exception. See Environment.launch
and ExternalEnvironment.launch
Source code in wetlands/internal_environment.py
execute(modulePath, function, args=(), kwargs={})
Executes a function in the given module
Parameters:
Name | Type | Description | Default |
---|---|---|---|
modulePath
|
str | Path
|
the path to the module to import |
required |
function
|
str
|
the name of the function to execute |
required |
args
|
tuple
|
the argument list for the function |
()
|
kwargs
|
dict[str, Any]
|
the keyword arguments for the function |
{}
|
Returns:
Type | Description |
---|---|
Any
|
The result of the function |