Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After setup sys.executable is the Delphi program #2

Open
peardox opened this issue Jul 19, 2022 · 3 comments
Open

After setup sys.executable is the Delphi program #2

peardox opened this issue Jul 19, 2022 · 3 comments
Assignees
Labels
Awaiting Feedback Waiting for feedback from submitter or others.

Comments

@peardox
Copy link
Contributor

peardox commented Jul 19, 2022

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)

@lmbelo lmbelo self-assigned this Jul 19, 2022
@lmbelo
Copy link
Member

lmbelo commented Jul 19, 2022

@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 lmbelo added the Awaiting Feedback Waiting for feedback from submitter or others. label Jul 19, 2022
@peardox
Copy link
Contributor Author

peardox commented Jul 19, 2022

Doing that...

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

@lmbelo
Copy link
Member

lmbelo commented Jul 22, 2022

@peardox I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Feedback Waiting for feedback from submitter or others.
Projects
None yet
Development

No branches or pull requests

2 participants