Lightweight-Python-Wrappers icon indicating copy to clipboard operation
Lightweight-Python-Wrappers copied to clipboard

After setup sys.executable is the Delphi program

Open peardox opened this issue 3 years ago • 3 comments

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 avatar Jul 19 '22 10:07 peardox

@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.

lmbelo avatar Jul 19 '22 13:07 lmbelo

Doing that...

Very simple example - https://github.com/peardox/Lartis

peardox avatar Jul 19 '22 14:07 peardox

@peardox I will try it.

lmbelo avatar Jul 22 '22 11:07 lmbelo