|
|
|
|
|
PythonTerminate (Function) In french: PythonTermine Unloads the Python DLL and frees memory. sPythonModule is string
<IF ExecutionTarget=Windows>
sPythonModule = SysDir(srLocalAppData) + ..
[fSep]+"Programs\Python\Python39\python39.dll"
<ELSE>
<IF ExecutionTarget=Linux>
sPythonModule ="/usr/bin/python/python39.so"
<END>
<END>
IF NOT PythonInitialize(sPythonModule) THEN
Error("Python initialization error", ErrorInfo())
RETURN
END
Info(HelloWorldImportedPythonFunction())
IF NOT PythonAddPath(fDataDir()) THEN
Error("Unable to initialize Python path", ErrorInfo())
RETURN
END
Info(PythonExecute("python_file", "HelloWorldPythonFunctionNotImported"))
PythonTerminate()
Syntax
<Result> = PythonTerminate()
<Result>: Boolean - True if memory has been freed,
- False otherwise.
Related Examples:
|
Training (WINDEV): WD Python
[ + ] This example shows how to run Python code in WINDEV applications. Prerequisite: Python 3 must be installed on the computer. To get Python 3, go to http://legacy.python.org/download/
|
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|