Re: importing a user file in Python

2007-12-01 Thread Rick Dooling
On Dec 1, 1:42 am, waltbrad <[EMAIL PROTECTED]> wrote: > Hello. I'm brand new to Python. > > Where on my system do I have to place these files before the > interpreter will import them? > In this case, odbchelper.py is a module you are trying to import. http://docs.python.org/tut/node8.html One

Re: importing a user file in Python

2007-11-30 Thread David Tweet
You have options: 1) Have the file in your current working directory, in which case it's just "import odbchelper". 2) Change your PYTHONPATH in your shell, adding a line like this to your bashrc perhaps: export PYTHONPATH=$PYTHONPATH:/home/jw/diveintopython-5.4/py ... and do the same