Using precompiled packages #475
-
Am I correct in assuming that precompiled packages can't be used when generating pyd-files? I've tried, and the script importing from my pyd-file fails. |
Beta Was this translation helpful? Give feedback.
Answered by
pyscripter
Jun 12, 2024
Replies: 1 comment 4 replies
-
Not sure what you are trying to do. Could you give a detailed minimal example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Firstly, you should not be using LoadDLL in your extension modules but LoadDllInExtensionModule. See https://github.com/pyscripter/python4delphi/blob/master/Modules/DemoModule/uMain.pas as a guide.
Regarding runtime packages, is the directory containing them in the path?
Even if it is there was a change in python when searching for dlls. The Windows path is no longer searched.
See
https://docs.python.org/3/library/os.html#os.add_dll_directory
and https://stackoverflow.com/questions/67805339/is-the-function-os-add-dll-directory-adding-directories-permanently.
You can try: