I have the following:
ModuleFolder
|
|-->. ModuleFile.py .
|
\'-->. TestsFolder .
You can also make symlink of the module path which you want to import and then use that symlink to import. Create a symlink in the python dist-packages.
To create a symlink:
ln -s "/path/to/ModuleFolder" "/path/to/python/dist/packages/module_symlink_name"
To import module in the script:
from module_symlink_name import ModuleFile
No need to export python path or modifying sys path.