W. Augustine Dunn III wrote:
> I am having a slightly annoying problem.  my fink installed python does 
> not seem to be paying attention to my PYTHONPATH envVariable. 
> 
> starting python and printing sys.path yields:
> 
> big...@earth 18:04:22 ~/sandbox/testParseFastQ: 
> python
> Python 2.6.4 (r264:75706, Dec 14 2009, 07:55:53) 
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import sys
>  >>> sys.path
> ['', '/sw/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', 
> '/sw/lib/python26.zip', '/sw/lib/python2.6', 
> '/sw/lib/python2.6/plat-darwin', '/sw/lib/python2.6/plat-mac', 
> '/sw/lib/python2.6/plat-mac/lib-scriptpackages', 
> '/sw/lib/python2.6/lib-tk', '/sw/lib/python2.6/lib-old', 
> '/sw/lib/python2.6/lib-dynload', '/sw/lib/python2.6/site-packages', 
> '/sw/lib/python2.6/site-packages/Numeric', 
> '/sw/lib/python2.6/site-packages/gtk-2.0']
>  >>> 
> 
> Only /sw directories.  It did not used to do this.  but I just now 
> noticed it so I dont know what I may have done to perturb it.

You don't show evidence that your PYTHONPATH is set. Did you perhaps run 
this  after "sudo -s"? sudo removes most env vars, apparently also 
PYTHONPATH. Anyway, for me it works:

costabel% env PYTHONPATH=/whatever python
Python 2.6.4 (r264:75706, Feb 18 2010, 07:40:49)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os, sys
 >>> os.getenv('PYTHONPATH')
'/whatever'
 >>> sys.path
['', '/whatever', '/sw/lib/python26.zip', '/sw/lib/python2.6', 
'/sw/lib/python2.6/plat-darwin', '/sw/lib/python2.6/plat-mac', 
'/sw/lib/python2.6/plat-mac/lib-scriptpackages', 
'/sw/lib/python2.6/lib-tk', '/sw/lib/python2.6/lib-old', 
'/sw/lib/python2.6/lib-dynload', '/sw/lib/python2.6/site-packages', 
'/sw/lib/python2.6/site-packages/Numeric', 
'/sw/lib/python2.6/site-packages/PIL', 
'/sw/lib/python2.6/site-packages/gtk-2.0']

-- 
Martin

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to