I have a directory layout like this:
Pytest\
__init__.py
connect.py
sql.py
test.py
what I want to do is that Pytest directory would be in my python environment path so that I can import all the modules i.e. connect.py, sql.py or test.py anywhere outside this directory or even the interactive shell.
This is what I have in my __init__.py:
from .connect import *
from .sql import *
from .test import *
for this I think I the parent directory should be in python path. The question is how should I go about it?
__init__.py