[Tutor] How to change the working directory in IDLE

Elisha Rosensweig benshafat at gmail.com
Tue Jun 16 23:00:59 CEST 2009


Hi Tutors,

I"m using Python 2.6.2 and the IDLE tool (also v. 2.6.2). However, when I
open the editor I cannot seem to change the directory so as to allow for
easy access to my modules. So, for example, the following occurs:

>>>
os.chdir('/Users/elisha/Documents/workspace/CacheNetFramework/src/Tests')
>>> os.getcwd()
'/Users/elisha/Documents/workspace/CacheNetFramework/src/Tests'
>>> import CSITest

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    import CSITest
ImportError: No module named CSITest


What am I doing wrong?

Thanks

Elisha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090616/e1446786/attachment.htm>


More information about the Tutor mailing list