I have two projects in workspace: PROJECTA and PROJECTB
I added the path of two projects to Environmental Variables with
variable name: PYTHONPATH variable value : C:\path-to-PA\PROJECTA;C:\path-to-PB\PROJECTB;
I have following directory structure for PROJECTA & PROJECTB
PROJECTA
com
example
sample
projAAA
srcfiles
testcasefiles
PROJECTB
com
example
sample
projBBB
srcfiles
testcasefiles
I am tring to import a file from srcfiles directory from testcasefiles directory in PROJECTB
from com.example.sample.projectBBB.srcfiles import pythonfile.py
Python is throwing an exception:
ImportError: No module named projectBBB.srcfiles
This error won't occur when PROJECTA path is removed from PYTHONPATH in Environmental variables
How to resolve this issue where I can add multiple project paths.