Ingrid wrote:
> 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:\\Doc
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
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
[EMAIL PROTECTED] wrote:
> I am just getting started with Python, and I think I may be thinking
> about it wrong. I'd like to be able to work interactively with some
> code that I've got in a file. The only interpreted language I have much
> experience with is Tcl/Tk, and in that I would use "sourc
python -i source_file.py
will do what you want.
-Sam
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I am just getting started with Python, and I think I may be thinking
> about it wrong. I'd like to be able to work interactively with some
> code that I've got in a file. The only interpreted language I have much
> experience with is Tcl/Tk, and in that I would use "sourc