Re: getting started, .py file

2006-02-20 Thread Ingrid
Thanks everyone. That's exactly what I was looking for, but I still
can't seem to make it work. I've got the interpreter starting in
"C:\Program Files\Python2.4", and my code is in "C:\Documents and
Settings\Ingrid\My Documents". So, I did:
  import os
  os.chdir("C:\\Documents and Settings\\Ingrid\\My Documents")
  from mycode import *

and I get the error message:
Traceback (most recent call last):
  File "", line 1, in -toplevel-
import mycode
ImportError: No module named mycode

I'm sure I'm missing something obvious again, but I don't see anything
in the import documentation about directories.

Ingrid

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: getting started, .py file

2006-02-20 Thread Ingrid
I found it! I needed to set sys.path ("sys.path.append("c:\\documents
and settings\\my documents\\ingrid")")

Ingrid

-- 
http://mail.python.org/mailman/listinfo/python-list