Problem with .pth files under linux

Fernando Pérez fperez528 at yahoo.com
Mon Nov 12 11:06:43 EST 2001


I'm sure this is simple and stupid, but I still don't know what's going on. I 
have some modules without a package structure (no __init__.py) but which have 
a .pth file. Specifically, Numeric. It comes in its own directory: 
site-packages/Numeric, and in site-packages I have a file Numeric.pth whose 
contents is simply 'Numeric' (no quotes).

Yet import Numeric doesn't work! I solved it by hand-coding Numeric into 
sys.path, but it annoys me and I have the same problem with other modules 
I'll need to use soon.

Could anyone tell me what I'm missing or doing wrong? (Python 2.1.1 under 
Linux, Mandrake 8.0).

Thanks,

F.



More information about the Python-list mailing list