plpipes.autoaction#
plpipes.autoaction
This module is a "magic" module that enables Python actions to be executed as if they were standard scripts. It should be imported at the beginning of any action script, as it performs necessary initialization and variable injection.
When imported, this module checks if the plpipes environment is initialized. If it is not, it sets up the environment and injects variables into the calling code's global namespace. This includes variables defined by PLPipes for actions, making them readily available for the action script without requiring explicit definitions.
Usage: - Import this module at the very start of your action script to ensure proper initialization and variable accessibility. - The module will automatically handle the necessary setup and variable injection.
Example:
Exceptions: - If the module is not the first import in the script, an exception will be raised indicating that the plpipes.autoaction must be the first sentence in the action script.