I have following directory structure,
/Scripts/myPyFile.py #myPyFile.py does impoarts from multiple other file(/Scripts/x.py, /Scripts/y.py so on) def modA() def ModB()
/Script/allScripts/main.py (I want main.py to be able to import modA from myPyFile.py)
I did google this issue and tried few methods, but I'm getting errors due to the fact that myPyFile.py imports other modules.
What is the best way without having to add this to the path variable? I'm on Win7 Python 3.4
I have tried the linked solution, but it doeesnt work for me.
sys.path.insert(0, r'C:\Users\Configuration\Script')
from myPyFile import getGatewayDevId #This gives so many errors about myPyFile import. Same issue if I try "import myPyFile"