Restricting import file lookup for pyd, dll, ...

Bernard Lebel 3dbernard at gmail.com
Thu Oct 19 17:38:20 EDT 2006


Hello,

Running Python 2.4.0 on Windows. I have run a series of tests using
Filemon (SysInternals), which logs the file system requests performed
by the computer.

By default, when I import a module in Python, Python looks for pyd,
dll, py, then pyw and finally pyc file.

In our company we do not use pyd and dll for Python stuff. Is there
any chance to disable Python from looking at these? Perhaps a flag we
can change in Python? Or would it be doable by recompiling the
sources?


Any advice is welcomed
Bernard



More information about the Python-list mailing list