Ok even more strangely it is working in the original location. Am now not 100% sure that I have the folder structure correct. I will keep a eye on it. Thanks To: [email protected] From: [email protected] Date: Wed, 5 Feb 2014 06:32:46 -0500 Subject: Re: [Tutor] sys.path.append import python3 not working
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
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
