[Edu-sig] import turtle ERROR
kirby urner
kirby.urner at gmail.com
Thu Apr 11 22:43:35 CEST 2013
> ** **
>
> So I copied the file to the desktop and test it from there but that failed
> too. *I eventually copied the file to the python directory (c:\python33)
> and that worked*.****
>
>
>
Hi Karine --
This sounds like an issue with sys.path, a list of directories to search
when import is used.
Windows installations of Python would not normally have My Documents or
Desktop in sys.path I don't think. However these may be added.
You can also show your students how to:
>>> import sys
>>> sys.path.append("c:\\...") # whatever path
That won't stick across sessions though. For that you could use .pth files
in your \\site-packages, which latter will be on sys.path and is the usual
place to save your own classroom work.
Kirby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20130411/fee67b39/attachment.html>
More information about the Edu-sig
mailing list