From thomas.heller@ion-tof.com Mon Apr 17 19:48:25 2000 From: thomas.heller@ion-tof.com (Thomas Heller) Date: Mon, 17 Apr 2000 20:48:25 +0200 Subject: [Import-sig] import disappointment Message-ID: <002b01bfa89d$834c49d0$4500a8c0@thomasnb> After playing with 'import' and __import__ for quite some time I discovered that neither ihooks nor knee works correctly. Put import ihooks ihooks.install() into your sitecustomize.py and start Pythonwin: it will fail. There are several problems here: 1. reload does not what it should (I submitted a patch for ihooks to correct this problem, the same technique must be used for knee). 2. ihooks does not import modules via the registry: there is a bug report in the python bug list for this one, I will also submit a (partial) patch for that. 3. Another yet unfound problem Using imputil is out of question because most programs including pythonwin are only expecting strings in sys.path. Before I use more work on this: Has anybody a version which really works correctly? Thomas Heller