To specify the classpath in Java, I use the -cp
or -classpath
option to java
. What is the equivalent option in Python?
I know I can set the OS variable PYTHONPATH
but there shouldn't be one PYTHONPATH
to rule them all.
I sometimes use PyDev in Eclipse. It can handle multiple source directories. How?
I often have multiple source directories. Sometimes I separate production and testing code. Sometimes I have a Git submodule with with some Python packages.