Closed pyscripter closed 1 year ago
@lmbelo Any thoughts?
@LennertP
You are most likely not using LoadDllInExtensionModule to load the python dll in your Delphi created python module.
See https://github.com/pyscripter/python4delphi/blob/master/Modules/DemoModule/uMain.pas
He is certainly not using LoadDllInExtensionModule.
The version of PythonEngine.pas that I was using didn't have this LoadDllInExtensionModule procedure (I didn't find a version number, but downloaded October 2020) . If I understand correctly this will set the FInExtensionModule boolean which will subsequently skip a.o. the call to SetProgramArgs. So, I guess upgrading to the latest version combined with calling LoadDllInExtensionModule should resolve this issue, right?
So, I guess upgrading to the latest version combined with calling LoadDllInExtensionModule should resolve this issue, right?
Indeed.
Discussed in https://github.com/pyscripter/python4delphi/discussions/430