I have PyCharm 2.7.3 installed on Windows and am trying to remotely develop an application on a Linux machine.
While I can run simple programs, however, I'm trying to install PYTHONPATH, and it seems that PyCharm specifically ignores this configuration.
In my startup configuration, I tried setting PYTHONPATH=/path/to/my/libs
, however, if I print this environment variable from Python via os.environ
, it will be ignored. If I set another environment variable, for example ASDF=42
, the value will be printed as expected, so this is something special with PYTHONPATH.
In the interpreters, I tried adding it to the Paths tab, but this tab only supports Windows paths, so it only seems local.
import os if __name__ == '__main__': print os.environ['PYTHONPATH'] print os.environ
The output of the first line of this program is changed based on the flags in the startup configuration, all with PYTHONPATH=/path/to/my/libs
When checking Add content roots to PYTHONPATH
and Add source roots to PYTHONPATH
and PYTHONPATH=/path/to/my/libs
first line of output is the remote root of my project, but still not the directory of my library.
If I uncheck the root source, the path will remain empty (but the variable is set to an empty string).
What am I doing wrong?
source share