Let's say that I have two projects with the following structure:
/project1
/project2
Now I have developed a function/class that could be useful to the both projects. I would like to put it somewhere out of the project1/project2 directories and to maintain it as a separate project. So I probably need structure like this:
/project1
/project2
/shared
If I put my helper functions/classes in the project that will be in the shared folder, how to use them from project1/project2?
At the moment my option is to use sys.path.append('/shared') in project1/project2 and after it to do import(s) from shared folder.
Is there some more pythonic way to do the same?