I have multiple Python projects (which are also Git repositories) in a "GitHub" folder like so:
GitHub/
├── Project_1/
│ ├── main.py
│ └── ...
└── Project_2/
├── main.py
└── ...
Now what I want is to import Project_1
inside of a .py file of Project_2 (for example main.py).
I searched the net of course and found these related questions:
- Anaconda: Permanently include external packages (like in PYTHONPATH)
- Include external package in Anaconda
However, they all describe how I would manage to import GitHub
, which is not what I want, since I get a weird self-import of Project_2 then.
Is there any way of achieving what I want, while still keeping the possibility of modifying all the code "on the fly" (without having to install it every time again or so)?
I am using PyCharm by the way - in case there is an internal workaround.
Please also tell me if anything I am doing is bad practice, and why - so I can learn from it.
Thanks in advance!