I'm debugging a program where I'm trying to import a file named xxx.pyd. I test the logic interactively with IDLE and see that it makes a difference on which directory the file xxx.pyd is located. That is, I can get it to work when xxx.pyd is on the path.
However, when I run the program in batch #!/usr/local/bin/python import cgitb; cgitb.enable() print "Content-type: text/html" print print "<pre>" import sys print sys.path import xxx I get the error message: No module named xxx, even though I know that the file xxx.pyd is on the path. If I put a file xxx.py in the same folder, the system finds that file. The file xxx.pyd has security numeric value 755, so the system should be able to find it. I'm baffled. Any suggestions of what my be causing the system to not find xxx.pyd? Thanks. Urban Landreman _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor