I am trying to import packages in python . Below mentioned is my folder structure
MainFolder
|config| locator|logs|page|tests
Each folder has __init__.py
file . tests folder has test.py
. Now , inside test.py
i am trying to import files from folders - config| locator|logs
However python is not recognizing them as package. If I place them under C:\Python27\Lib
then I am able to import.
I tried adding sys.path.append(os.path.abspath("/ MainFolder/<folder name>"))
before importing but it is not working.
How do I import them ?