I have created a folder named \"custom_module\" and I have the __init__.py inside the folder which contains:
__all__ = [ \'Submodule1\', \'Su
sys.path holds the Python search path. Before trying to import your modules and packages, set it to include your path:
sys.path
import
import sys sys.path.insert(0, 'your_path_here') import custom_module
More detail in the Python docs and in this question