Re: [Tutor] Runing a Python program

2006-05-13 Thread w chun
> On my computer (Win2K) Python puts the current working directory in > sys.path. (I'm not sure this happens on Linux.) yes it does, on any unix-flavored system (Linux, FreeBSD, MacOS X, Solaris, etc.). since we're on the topic, there is another attribute in the sys module, sys.modules that shows

Re: [Tutor] Runing a Python program

2006-05-13 Thread Alan Gauld
Hi Henry, > As a new python programmer, I created a directory in > 'C:\python24\myPythonFiles', and added a simple python > under the myPythonFiles directory; but when I tried > running it on the Python Shell, I got the following error. > >>> import myPythonFiles.readOut > ImportError: No modu

Re: [Tutor] Runing a Python program

2006-05-13 Thread Kent Johnson
Henry Dominik wrote: > Hello people, > > As a new python programmer, I created a directory in > 'C:\python24\myPythonFiles', > and added a simple python under the myPythonFiles directory; but when I > tried running it on the Python Shell, I got the following error. > > >>> import myPythonFil

Re: [Tutor] Runing a Python program

2006-05-13 Thread Evans Anyokwu
There's a simple way you can add your directory to the execution path. try this >>> sys.path.append(r'C:\python24\myPythonFiles') now, you can import your file with the import command >>> import yourFile   Note: This is only a temporary solution, when you close the interpreter, it will nee