I'm using IDEA Python plugin but I think this pertains to pycharm as well:
My project has 2 modules. scripts in module2 depend on scripts in module1 eg myscript.py needs to import help.py
I'd like to set a relative 'classpath' in module2 ie: something like $MODULEDIR$../../../../module1/src/py so it knows about the scripts in module1.src.py
I know I can do this by doing sys.path.append( <../../../../module1/src/py ) but don't wish to do that as my deploy mechanism will be different.
-myscript.py #depends on helper.py
I want to do this so that if someone else opens my project but has a different root dir eg c:\workspace\MyProject everything will still work because all the paths are relative to the project.