-
-
Notifications
You must be signed in to change notification settings - Fork 320
SetPythonHome; Ansi/UTF8 eval; warning silent #59
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ll dir is not the same as PythonHome)
…as(9758): W1002 Symbol 'SetPrecisionMode' is specific to a platform which is {$IFNDEF NEXTGEN} anyway.
…f8; ToPythonRawString will make the right RawString.
Thanks! |
Thank you! At which point do you call SetPythonHome? I was thinking of introducing a published property PyhtonHome. |
Just before LoadDll, as Py_SetPythonHome needs to be called after you load
the dll and before you call Py_Initialize.
…On Wed, 10 Oct 2018 at 09:39, pyscripter ***@***.***> wrote:
At which point do you call SetPythonHome? I was thinking of introducing a
published property PyhtonHome.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZIQrfEWPxAGShuMbV28SsgC80EhuCMhks5ujZYOgaJpZM4XSTbs>
.
|
That is where Py_SetPythonHome is called in PythonEngine.pas. I can see that. I was asking about when do you call SetPythonHome which sets the fields FPythonHomeW and FPythonHome. I guess you are setting AutoLoad to False; |
Sorry if I wasn't clear :)
I call it just before I call PyEngine.LoadDll.
…On Wed, 10 Oct 2018 at 10:01, pyscripter ***@***.***> wrote:
That is where Py_SetPythonHome is called in PythonEngine.pas. I can see
that. I was asking about when do you call SetPythonHome which sets the
fields FPythonHomeW and FPythonHome.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZIQrQjIvNVIh4scr7quWLv_AWjiqw_-ks5ujZssgaJpZM4XSTbs>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Please review and merge these changes:
RE: Option to use latest DLL: needed for machines with both 2.7 and 3.x that want to use 3.x. changes the version search to be reversed (last version is tested first)
You wrote: Have a look at PythonVersions.pas. It does all that and more.
Please advise how to make Python4delphi prefer the newer python version.
Kind Regards,
Idan