Re: Newbie question: python doesn't search the cwd for my module

2006-10-03 Thread Ben Finney
izak marais <[EMAIL PROTECTED]> writes: > I want to import a module I wrote to use it in a script. But, it is > not in the same directory as the script I want to import it into. I can think of two sensible solutions. One is to change the 'sys.path' list to include the directory where you want Py

Newbie question: python doesn't search the cwd for my module

2006-10-03 Thread izak marais
Hello AllI want to import a module I wrote to use it in a script. But, it is not in the same directory as the script I want to import it into. So my solution is to put the following piece of code in the script:import osos.chdir()import This generates an error: 'ImportError: no module named 'If I do