The network dictates that it is the only way I can really do it as I cannot edit any files directly. I have to append the path on the fly > Date: Wed, 5 Feb 2014 11:51:18 +0000 > From: [email protected] > To: [email protected] > Subject: Re: [Tutor] sys.path.append import python3 not working > > On 05/02/2014 11:46, Ian D wrote: > > 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. > > You might want to consider whether your approach is the best. One > usually appends to sys.path when there's something dynamic about the > location of modules (eg for a plugin mechanism). If your library modules > are always in, say, d:/modules then just set up a PYTHONPATH env var > with that in it; or use a .pth file in your python directory. I do the > latter, altho' it's frowned upon by some for reasons I've never entirely > understood. > > TJG > > _______________________________________________ > 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
