pythonDefaultRuntime
property with the python2
or python3
values: it will look for a Python2 or Python3 installed version of PythonpythonRuntime
or pythonRuntimeEnv
properties: it will set the default runtime to use for all Python scriptspythonDefaultRuntime
property can be set to define which Python version should be executed if the pythonRuntime
property is not set. The version will be assumed to be Python3.x if the value (regardless of the case) is "python3", and Python2.x for all other values[1]
pythonRuntime
property or pythonRuntimeEnv
property is set, the defaultPythonRuntime
property will not be used<files> ... <property key="pythonDefaultRuntime" value="python3" /> </files>
pythonRuntime
property can be set to force the path of the Python executable used to execute Python scripts. Note that if the path is a symbolic link linking to a real Python executable, the framework will follow this link.<files> ... <property key="pythonRuntime" value="C:/Program Files (x86)/Python24/python.exe" /> </files>
pythonRuntime
element. For example:<files> ... <property key="pythonRuntime" value="C:/Program Files (x86)/Python24/python.exe" /> </files>is equivalent to:
<files> ... <pythonRuntime path="C:/Program Files (x86)/Python24/python.exe" /> </files>This way of setting the path allows to define that Python is executed inside Anaconda. For example:
<files> ... <pythonRuntime path="L:/WRK/Anaconda3/python.exe" anaconda="true" /> </files>
pythonRuntimeEnv
property can be set to define the environment variable used to call Python executable, used to execute Python scripts. It is often useful in Unix systems. <files> ... <property key="pythonRuntimeEnv" value="python38" /> </files>
pythonDefaultRuntime
property can be set to define which Python version should be executed if the pythonRuntime
property is not set. The version will be assumed to be Python3.x if the value (regardless of the case) is "python3", and Python2.x for all other values[1]
pythonRuntime
property or pythonRuntimeEnv
property is set, the defaultPythonRuntime
property will not be usedshowPythonCommandLine
property is a boolean property which allows to show the command-line started by the Python process on the Logger output. <files> ... <property key="showPythonCommandLine" value="true" /> </files>
ignorePythonWarnings
property is a boolean property specifying if warning messages should be ignored rather than be shown on the console. The default is false.<files> ... <property key="ignorePythonWarnings" value="true"/> </files>
pythonDefaultPortSize
property can be set to specify the default input and output port size for the communication between Java and Python, when using Python socket modules.
ignorePythonWarnings
property can be set to ignore warnings emitted by Python scripts.<files> ... <property key="ignorePythonWarnings" value="true" /> </files>
pyWaitAtStart
property specifies the default value for the waitAtStart property for the Python modules. The default value if nothing is specified is 200 ms. <files> ... <property key="pyWaitAtStart" value="500ms" /> </files>
pyWaitAtInit
property specifies the default value for the waitAtInit property for the Python modules. The default value if nothing is specified is 200 ms. <files> ... <property key="pyWaitAtInit" value="500ms" /> </files>
pythonEnumAsString
property specifies that the state names should be sent instead. Note that this can also be condifured with the framework property of the same name.
pythonRuntime
element.
echoOff
property is a boolean property specifying if the echo and print commands must be siletnly ignored and not shown in the console. The default is false.<files> ... <pythonRuntime path="C:/Program Files (x86)/Python24/python.exe" echoOff="true"/> </files>
stripModuleFromLogs
property is a boolean property specifying if the python module name must be stripped from the logs. The default is false.<files> ... <pythonRuntime path="C:/Program Files (x86)/Python24/python.exe" stripModuleFromLogs="true"/> </files>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence