pythonDefaultRuntime
property with the python2
or python3
values in the framework properties: it will look for a Python2 or Python2 installed version of PythonpythonRuntime
or pythonRuntimeEnv
properties in the framework properties: it will set the default runtime to use for all Python scriptspythonRuntime
element in each Python module specification: it will override the default runtime for each particular modulepythonRuntime
element in the framework properties or a Python module specification has the following attributes:
path
: the path of the Python executableenv
: the Python environment value if Python is installed as an installed environment runtimestripModuleFromLogs
: true if the module name must be stripped from the logs coming from Pythoncompatibility
: the Python modules version compatibilitycondition
: use a condition to enable the runtime declarationanaconda
: true for an Anaconda Python installationanacondaEnv
: to specify the Anaconda environment in which Python must be startedechoOff
: by default, an echo off
instruction is added to the Anaconda launch script. By setting the associated value to false, this instruction will not be added, and the console shows the execution of the launcher scriptpythonRuntime
property allows to specify that the Python runtime is an Anaconda install. For example:<files> ... <pythonRuntime path="L:/WRK/Anaconda3/python.exe" anaconda="true" /> </files>
/usr/bin/user/python
) is not a valid executable path. It is better to use the pythonRuntimeEnv
property or the env
parameter in the Python module with the value of the environment variable. For example for framework properties:<files> ... <property key="pythonRuntimeEnv" value="python38" /> </files>
<files> ... <property key="pythonDefaultRuntime" value="python3" /> </files>
<files> ... <property key="pythonRuntime" value="C:/Program Files (x86)/Python24/python.exe" /> </files>
<pythonModule name="FlightManagementSystem" > <pythonImplementation path="pythonAppli" > <pythonRuntime path="C:/Program Files (x86)/Python24/python.exe" /> </pythonImplementation> </pythonModule>or:
<pythonModule name="FlightManagementSystem" > <pythonImplementation path="pythonAppli" > <pythonRuntime env="python24" /> </pythonImplementation> </pythonModule>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence