Adds the path to a directory or the path to the virtual environment to search for Python modules.
Remark: By default, Python modules are searched from the runtime directory.
IF PythonInitialize("C:\Programs\Python\Python39\python39.dll") THEN
PythonAddPath("C:\tmp\python-modules\")
PythonExecute("test_module", "id", 5)
END
Syntax
<Result> = PythonAddPath(<Module path>)
<Result>: Boolean
- True if the path has been taken into account,
- False otherwise.
<Module path>: Character string
Path where Python modules can be found. Caution: subdirectories are ignored.
Business / UI classification: Business Logic