PyCharm path setup between projects
Hi, I would like some ideas of how to setup project paths.
My issue:
when opening more then one project in PyCharm - my PYTHONPATH variables in PyCharm are linked to the first project.
for example in project1 : Proj_Root_1/SRC_file/script.py will import Proj_Root_1/SRC_file/imports.py
when opening project2: Proj_Root_2/SRC_file/script.py will try import Proj_Root_2/SRC_file/imports.py but will land up pointing to Proj_Root_1 files in PyCharm
I tried using Venv but even then i seem to get Pythonpaths from first project and dont get new paths
A little more background:
The way I work is setting a new clone for a git repo for each change or feature, causing project dependencies to be relative and change between each feature I am working on. this leading to many open projects using some relative paths with similar names as other projects.
As part of running python in each different project I set my paths into PYTHONPATH env var.
* please note that I am working with PyCharm community 2018.2
I'm looking for a way to set my project paths so ill be able to have multiple projects open and no cross linking between the paths in PyCharm
I want to do this in a way that I don't have to reconfigure my interpreter files every time I open another project
Thanks
请先登录再写评论。