[pyar] PYTHONPATH y sys.path
Manuel Kaufmann
humitos en gmail.com
Lun Mar 28 22:03:37 ART 2011
Hola, tengo un comportamiento que no entiendo en Python 2.5.2
En el servidor,
root:~# echo $PYTHONPATH
/root/.virtualenvs/virtualenvwrapper
root:~# python2.5
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys ; sys.path
['', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/var/lib/python-support/python2.5']
>>>
En mi pc,
[humitos] [~]$ echo $PYTHONPATH
/home/humitos/.virtualenvs/virtualenvwrapper
[humitos] [~]$ python2.5
Python 2.5.5 (r255:77872, Nov 28 2010, 19:00:19)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys ; sys.path
['', '/usr/lib/python2.5/site-packages/PyAMF-0.4.2-py2.5-linux-i686.egg',
'/usr/lib/python2.5/site-packages/TracSectionEditPlugin-0.1-py2.5.egg',
'/home/humitos/.virtualenvs/virtualenvwrapper', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/pymodules/python2.5',
'/usr/lib/pymodules/python2.5/gtk-2.0']
>>>
¿Porqué no aparece la ruta del virtualenvwrapper en el servidor?
--
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
PyAr: http://www.python.com.ar/
More information about the pyar
mailing list