Lightweight-Python-Wrappers
Lightweight-Python-Wrappers copied to clipboard
After setup sys.executable is the Delphi program
This is probably undesired and easy to illustrate with a 2 line python script you can call from an Embedded Python
import sys
print(sys.executable)
@peardox,
are you using the TPyEnvironment component to activate the TPythonEngine component? You can use the Activate method after Setup, it will load all Python settings as expected.
Doing that...
Very simple example - https://github.com/peardox/Lartis
@peardox I will try it.