I have this in my ~/.profile
:
export PYTHONPATH=/home/dev/python-files
In the python-files
directory, I have a few projects cloned from git-hub (flask, curveship and py-vgdl).
Whenever I try to start up any of the examples in these projects, I get errors similar to the following:
$ python ~/python-files/py-vgdl/examples/gridphysics/frogs.py
Traceback (most recent call last):
File "/home/dev/python-files/py-vgdl/examples/gridphysics/frogs.py", line 67, in <module>
from vgdl.core import VGDLParser
ImportError: No module named vgdl.core
It seems to me that I shouldn't get this error because I have that PYTHONPATH
environmental variable set up?
Running the python interactive interpreter:
>>> import os
>>> os.environ["PYTHONPATH"]
'/home/dev/python-files'