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

Discussion in 'Python' started by Bernard Lebel, Oct 19, 2006.

  1. 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
     
    Bernard Lebel, Oct 19, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Keeling

    import pyd from zip file

    John Keeling, Sep 2, 2004, in forum: Python
    Replies:
    1
    Views:
    402
    David Bolen
    Sep 2, 2004
  2. wen
    Replies:
    1
    Views:
    493
    Daniel Dittmar
    Aug 23, 2005
  3. Bernard Lebel
    Replies:
    5
    Views:
    305
    Gabriel Genellina
    Dec 12, 2006
  4. jrh

    import dll instead of pyd

    jrh, Jul 25, 2008, in forum: Python
    Replies:
    2
    Views:
    419
    Fredrik Lundh
    Jul 25, 2008
  5. Replies:
    5
    Views:
    172
    Junze Liu
    Jan 24, 2013
Loading...

Share This Page