Re: getting started, .py file

2006-02-21 Thread Steven D'Aprano
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

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

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

Re: getting started, .py file

2006-02-20 Thread Peter Hansen
[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

Re: getting started, .py file

2006-02-20 Thread Sam Pointon
python -i source_file.py will do what you want. -Sam -- http://mail.python.org/mailman/listinfo/python-list

Re: getting started, .py file

2006-02-20 Thread Steve Holden
[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