Posts: 232
Threads: 2
Joined: Sep 2017
Importing a python module from a different directory to that which your main module is located in is somewhat fiddly.
Take a look at the
stack overflow answer for approaches for different versions of python.
I am trying to help you, really, even if it doesn't always seem that way
Posts: 232
Threads: 2
Joined: Sep 2017
(Oct-11-2017, 11:53 AM)buran Wrote: (Oct-11-2017, 11:44 AM)gruntfutuk Wrote: Importing a python module from a different directory to that which your main module is located in is somewhat fiddly.
Take a look at the stack overflow answer for approaches for different versions of python.
Not sure it is good idea for OP to go this road (i.e. interface to the internals of import), as they are not familiar how import itself works
I'm a bit confused at the level setting on here, as earlier I chose not to inflict PEP8 on someone not understanding indentation and someone (you?) felt otherwise, and now I'm being criticised for introducing more complex importing options.
I guess I shall get used to it after a while.
Alternatively, as a beginner at Python, maybe I should just stop trying to help.
I am trying to help you, really, even if it doesn't always seem that way
Posts: 232
Threads: 2
Joined: Sep 2017
Oct-11-2017, 12:03 PM
(This post was last modified: Oct-11-2017, 12:04 PM by gruntfutuk.)
Thanks for clarifying. I'm trying. Not much on the like front let alone reputation yet, but it's not really a competition. I find I learn quicker if I try to help others.
I am trying to help you, really, even if it doesn't always seem that way