Ian D <[email protected]> Wrote in message:
>

> import sys
> sys.path.append("d:\modules")
 
> I have tried it with append("d:\\modules") append("d:/\modules")
 
The first form is not reasonable, you'd need to double the
 backslash. But your second try should have worked.  Here's what I
 would use:

"d:/modules"
or perhaps
r"d:\modules"
"d:\\modules"

I would suggest printing sys.path from your code,  just in case.

I would then check the actual directory name and module name, 
 especially for case. Windows may not usually care about case, but
 sometimes it does matter.

Finally I'd run the python with the -v switch,  and see what it
 tells you.


-- 
DaveA

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to