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

Bernard Lebel 3dbernard at
Thu Oct 19 23:38:20 CEST 2006


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

Any advice is welcomed

More information about the Python-list mailing list