Define the Module Name that Identifies the Python Library
With Python programming, a 'module' is quantity of Python code. A 'module' might comprise a complete Python program, or a structured portion of Python code that is intended to be used in one or more Python programs.
The Python Library tab on the configuration form of a Python Library item includes a Module Name field. Use the field to specify the name that uniquely identifies this particular Python Library (which is designed to store a 'module' of Python code).
We recommend that you specify a name that is unique to all Python Libraries in the database. This is because the Module Name has to be unique across all of the Python Libraries that get referenced by a Python program. If multiple Python programs reference the same Python Library, the Module Name has to be unique across all of the Python Libraries that get referenced by each of those Python programs.
The Module Name can only contain alphanumeric and underscore (_) characters. The name cannot start with a number and cannot include spaces.
With the Python programs that the Geo SCADA Expert server is to execute, to refer to the code that is stored in this Python Library item:
-
Include the Python Library item in the list of Python Libraries to which the Python program is to refer (see Specify any Python Libraries that a Python Program is to Use).
-
In the program code of the Python program, specify this module name when you want to refer to the code that is stored in this Python Library item (see Write and Edit the Program Code in a Python Program).