What sets the sys.path for nrniv -python?
Posted: Thu Dec 11, 2014 4:44 pm
When I execute
then
i get:
but when i just execute
then
i get
i need to be able to access the modules that are installed in the anaconda python, which seems configured correctly in my .bash_profile
Code: Select all
nrniv -python
Code: Select all
import sys
sys.path
Code: Select all
['', '', '', '/Users/milsteina', '/Applications/NEURON-7.3/nrn/lib/python', '/anaconda/lib', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-darwin', '/usr/lib/python2.7/plat-mac', '/usr/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/Extras/lib/python', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/Library/Python/2.7/site-packages', '/Applications/NEURON-7.3/nrn/share/nrn/lib/python']
Code: Select all
python
Code: Select all
import sys
sys.path
Code: Select all
['', '/Users/milsteina', '/Applications/NEURON-7.3/nrn/lib/python', '/anaconda/lib', '/anaconda/lib/python27.zip', '/anaconda/lib/python2.7', '/anaconda/lib/python2.7/plat-darwin', '/anaconda/lib/python2.7/plat-mac', '/anaconda/lib/python2.7/plat-mac/lib-scriptpackages', '/anaconda/lib/python2.7/lib-tk', '/anaconda/lib/python2.7/lib-old', '/anaconda/lib/python2.7/lib-dynload', '/anaconda/lib/python2.7/site-packages', '/anaconda/lib/python2.7/site-packages/PIL', '/anaconda/lib/python2.7/site-packages/Sphinx-1.2.3-py2.7.egg', '/anaconda/lib/python2.7/site-packages/runipy-0.1.1-py2.7.egg', '/anaconda/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg']