I have the following file structure
python/
A/
a.py
b.py
B/
c.py
So there are two folders A and B under the folder python and I want to import modules from a.py and b.py – import them in c.py ( B folder)
I wrote an __init__.py with __all__=['modulename'] and placed it in folder B. Now in my c.py I import the modules using import statement. This however does not seem to work. Any thoughts on how I can achieve the import of the modules in above case?
pythontoPYTHONPATHin your environment.__init__.pyfile insideA.Then in
c.py: