Tool for generating HSL 2.0 blocks.
The HSL 2.0 generator uses the XML definition file (config.xml) to create several files for each module defined there and creates a directory structure for the first call. For further calls, Python code added by the developer is injected into the modules.
The HSL 2.0 generator uses the XML definition file (config.xml) to create several files for each module defined there and creates a directory structure for the first call. For further calls, Python code added by the developer is injected into the modules.
- A Python script in the directory src
This script contains a Python class and program code. The developer then extends it with specific Python code at the points marked in the script - A logic module in ".hsl" format in the directory release
This module is generated completely and must not be changed. Changes to the module are made by modifications in the XML definition file and/or the corresponding Python script in the directory src - A Python script in the directory debug
This script is generated completely and must not be changed. Changes to this script are made by modifications in the XML definition file and/or the corresponding Python script in the directory src
Attention
Initially the generator is called once to generate the above mentioned files. After the developer has inserted his own Python code in the script in the src directory, the generator can be called again, and as often as desired. It then generates the ".hsl" and ".py" files in the release and debug directories again, taking into account the modifications made in the meantime (Python code injection).
In addition, the generated part of the ".py" files in the src directory is also recreated.
In addition, the generated part of the ".py" files in the src directory is also recreated.
Call of the HSL 2.0 generator:
Example: python generator.pyc "my project" utf-8
python generator.pyc PROJEKT-SCHLÜSSEL CODE-PAGE
Example: python generator.pyc "my project" utf-8
- python
Calling the Python runtime environment - generator.pyc
Calling the Generator - Project key
Name of the project directory. - Code page
Code page of the generated Python files
For information on the encodings supported by Python, see the following link.
Attention
By clicking on the following link you leave this documentation!
www.python.org - Standard Encodings
www.python.org - Standard Encodings
Note
The structure of the entire directory structure of a project is defined except for the project name and the names of the test directories and is described under Project Structure.