I have my github project MYMODULE
structure following the guidelines e.g.:
README.rst
LICENSE
sample/__init__.py
sample/core.py
sample/helpers.py
The core of my project is inside sample
folder where __init__.py
is stored.
I would like to be able to keep it accessible including sample
folder in the PYTHONPATH, but of course if I git -clone
the project in a folder listed in the PYTHONPATH I will have another folder MYMODULE
before the sample
folder with the __init__
file, and so I won't be able to import it. I know that if I move the sample folder one level up I will be able to access the module but this will compromise the sync with my GitHub repository.
Is there any guideline or best practice for solving this issue?
I've tried to use git sparse checkout but this doesn't solve the issue because it however stores the folder selected inside a parent folder.