[Tutor] sys.path.append import python3 not working

Ian D duxbuz at hotmail.com
Wed Feb 5 12:09:35 CET 2014


Hi
 
 
Seem when I run a module I created with
import sys
sys.path.append("d:\modules")
 
import myMod
 
it works great.... in 2.7
but in 3.3 it doesn't 
 
I get an error in 3.3:
import myMod
ImportError: No module named 'myMod'
 
I have tried it with append("d:\\modules") append("d:/\modules")
 
Anyone help please?
 
Thanks
 
 
 
 
p.s. Apologies for poor etiquette so far as have been double posting and replying direct to replies. Will try and stop making these mistakes. 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140205/379e6bc9/attachment.html>


More information about the Tutor mailing list