yethum / python4delphi

Automatically exported from code.google.com/p/python4delphi
0 stars 0 forks source link

bug: pythonXX.dll is in the system32 directroy #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
on the program startup, PythonEngine.pas read the registry to read the Python 
install directory, and append path PythonXX.dll.

after that, it call loadlibrary to load the PythonXX.dll to program.

but the pythonXX.dll is in the c:\windows\system32 or c:\windows\syswow64 
directory.

so...

Original issue reported on code.google.com by tbxyww@gmail.com on 25 Jul 2011 at 8:53

GoogleCodeExporter commented 9 years ago
If you read the code P4D works differently for ALL_USERS and single user python 
installations.  ALL_USER installations place the dll in the Windows system 
directory and single useer installations in the python directory.  This is how 
P4D looks for the dll.

Original comment by pyscripter on 25 Jul 2011 at 10:00