...
Sample Files Can Be Found in Product: \Samples\Python\
Integrate Python into Origin as a scripting language (ORG-9039)
...
Code Block | ||
---|---|---|
| ||
run.Python(%(str$), #); // # = 32(or 33) for setting path, 16 for suppress dump output, 2 for file, 1 for expression, 0 for statement |
Or
Code Block | ||
---|---|---|
| ||
run -py %(str$); // Run Python script
run -pye %(str$); // Evaluate Python Expression
run -pyf %(str$); // Run Python file |
Supported Version: Python 2.7 and 3.3By default we support Python 3.3, to switch the Python version to Python 2.7, please run the script below in Script Window
|
- Execution mode in Script Window to run Python scripts (ORG-10779)
- Access Origin in Python by PyOrigin module.
...