Python-2.5.exe?

"Martin v. Löwis" martin at v.loewis.de
Wed Nov 15 22:33:56 CET 2006


John Salerno schrieb:
> Is it safe to assume that if you do this, Python first looks in
> C:\Python25 for the dll file, before trying to find the non-existent (on
> the USB drive) C:\Windows\System32?

python25.dll is found through mechanisms of the operating system, not
through code in Python. The operating system loads DLLs in the order
specified here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic-link_library_search_order.asp

As you can see, the directory containing the application is searched first.

Regards,
Martin



More information about the Python-list mailing list