Here is the structure of my directory:
MyFolder
   -run.py
SecondFolder
   -class.py
What I have attempted is adding the directory path to sys.path within the run.py file and this will work only occasionally (not sure why):
import sys
sys.path.insert(0, '/Users/.../SecondFolder/class.py')
from class import Connection
How can I ensure the module is always loaded? Any help is greatly appreciated.
 
    