getting started, .py file
Ingrid
nibiery at hotmail.com
Mon Feb 20 18:01:24 EST 2006
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 "<pyshell#29>", 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
More information about the Python-list
mailing list