Page Tree
Other Releases
Easy Heading Macro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Info | ||||
---|---|---|---|---|
| ||||
This page gives you information on the multiple ways you can use ANY VERSION of the Python Programming Language in FactoryStudio. (That's right - ANY version - 3.x, or the older and past end-of-life 2.x) | ||||
Info | ||||
| ||||
Quick video tutorial: Using Phyton with TK Data Access, Using Phyton with Script Task, Using Phyton with Code Behind |
...
In recent updates there has been an addition to a new programming language included: Python, an interpreter, high-level, general-purpose programming language. Factory Studio can use any version of Python even 3.x or the older and past end-of-life 2.x.
Users can use Python in three different ways:
...
During the installation of the Python Engine, we strongly recommend choosing the option to “Install for all users”.
Python installation settings
Now we must include the interpreter to your project, navigate to Info > Settings tab, and search for the Python field.
Adding Python Interpreter
Click on the button and browse for the Python Engine installed and select the python.exe file.
...
Note |
---|
Once a new Task is created, the language cannot be altered through Code Column. |
Selecting Python language in Edit>Scripts>Tasks
After creating new script task you need edit it through CodeEditor tab.
Python CodeEditor in Edit>Scripts>Tasks
The configurations settings are detailed below:
...
In this scenario we configure a task for Python language. In the Python file name field set the Python file to be executed. In this example we used the Main2.py.
Python CodeEditor in Edit>Scripts>Tasks
In the Standard Output field we put a Tag called output. This Tag type must be Text. In the Arguments fields type another Tag called script.
...