In PyCharm I have one project that makes calls to another project's modules.
For example let's say we have two projects abc and xyz. Within project abc we have a module abc.mod_a with function f1(), and within project xyz we have a module xyz.mod_b with function f2().
abc.mod_a.py:
import xyz.mod_b
def f1():
xyz.mod_b.f2()
xyz.mod_b.py:
def f2():
print("something was done")
I've done the following to make this possible:
I have added xyz as a project dependency for project abc: Settings->Project->Project Dependencies
I have added the path to xyz's primary directory to the PYTHONPATH for the interpreter used for project abc: Settings->Project->Project Interpreter->Show All->Interpreter Paths->Add Path
When I run code that uses abc.mod_a.py I get a module not found error on the initial import xyz statement. What am I doing wrong?
