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

Ian D duxbuz at hotmail.com
Wed Feb 5 12:28:50 CET 2014


Ok I seem to be having some success with it at the moment after moving the location of the module.
 
From: duxbuz at hotmail.com
To: tutor at python.org
Date: Wed, 5 Feb 2014 11:09:35 +0000
Subject: [Tutor] sys.path.append import python3 not working




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. 
 		 	   		  

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140205/3d42ec56/attachment.html>


More information about the Tutor mailing list