[clug] finding and settting the python include path

Simon Burton simon at arrowtheory.com
Wed Feb 11 06:21:45 GMT 2004


On Wed, 11 Feb 2004 17:07:33 +1100
Michael James <Michael.James at csiro.au> wrote:
...
> How do I discover python's include path
>  and where does it get set?
> 
> Is there a way of getting python to have a look around
>  and update it's path?
> 
> Please pardon my complete ignorance of this,
> michaelj
> 
> -- 
> Michael James                         michael.james at csiro.au
> System Administrator                    voice:  02 6246 5040
> CSIRO Bioinformatics Facility             fax:  02 6246 5166
> 

arrow:~/home$ 
arrow:~/home$ echo $PYTHONPATH 
/home/simon/home/c/sonic:/home/simon/home/python
arrow:~/home$ python
Python 2.2.3 (#1, Jan 14 2004, 13:48:54) 
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['',
 '/home/simon/home/c/sonic',
 '/home/simon/home/python',
 '/usr/local/lib/python2.2',
 '/usr/local/lib/python2.2/plat-linux2',
 '/usr/local/lib/python2.2/lib-tk',
 '/usr/local/lib/python2.2/lib-dynload',
 '/usr/local/lib/python2.2/site-packages',
 '/usr/local/lib/python2.2/site-packages/Numeric',
 '/usr/local/lib/python2.2/site-packages/PIL']
>>> 
arrow:~/home$ 


Simon.


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 


More information about the linux mailing list