Re: [Tutor] Concerning relative import paths

2016-03-15 Thread Alan Gauld
On 14/03/16 17:19, David Aldrich wrote: > myproj - gui > > | > > |-- python > > My gui/main.py contains this sort of import code: > > import os, sys > sys.path.append('../python') > import MyClass > > > The thing is that I am using Microsoft's Visual Studio... > My ques

[Tutor] Concerning relative import paths

2016-03-14 Thread David Aldrich
Hi My Python project's directory structure looks like this: myproj - gui | |-- python The 'gui' folder contains my main.py. The 'python' folder contains various modules that we have written. My gui/main.py contains this sort of import code: import os, sys sy