Multiple project workflow - Refactoring and cross-project imports in Pycharm with multiple projects; how?

Currently I'm in the process of working on multiple projects at the same time and I need to do some (cross-project) refactoring and importing, though PyCharm isn't liking my way of thinking.

Let's say I have an open directory (I'm referring to it as a project):
/myTools/

It contains the python sources as in:
/myTools/myTools/__init__.py
/myTools/myTools/foo/
/myTools/myTools/bar/

And I also have another one open like:
/myOtherProject/

It contains the python sources as in:
/myOtherProject/myOtherProject/__init__.py
etc.

Now I want to be able to do from myOtherProject:
import myTools.foo

Whenever I change something in myTools (refactoring) I would like PyCharm to update the imports in myOtherProject.
I'm possibly working with the wrong workflow, but I'm very interested in seeing what the best workflow is for working on multiple projects at the same time (with ease of refactoring).

Note: I'm currently giving an example with 2 projects, but in reality it could be more than two at the same time. (Currently 4 to 5)

How should I do this?
1 comment
Hi Roy, when you open your second project you need to open it in the same window attaching it to the first project.
Then you can manage dependencies: Settings | Project Dependencies

That will make your refactorings to update all references across both of the projects.
0

Please sign in to leave a comment.