> 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
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
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
u
close the interpreter, it will need to be appended again.
Hope that help.
- Original Message -
From:
Henry Dominik
To: Tutor
Sent: Friday, May 12, 2006 9:24 PM
Subject: [Tutor] Runing a Python
program
Hello people,
As a new python programmer, I creat
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
myPythonFiles.readOut
Traceback (most rece