-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michal Marek wrote: > Pascal Bleser wrote: >> What just makes me wonder... what's the point of installing Python >> libraries under /usr/local when the default sys.path doesn't include >> that directory ? >> >> $ python >> Python 2.4.2 (#1, Apr 9 2006, 16:08:21) >> [GCC 4.1.0 (SUSE Linux)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >>>>>> import sys >>>>>> print sys.path >> ['', '/usr/lib/python24.zip', '/usr/lib64/python2.4', >> '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', >> '/usr/lib64/python2.4/lib-dynload', >> '/usr/lib64/python2.4/site-packages', >> '/usr/lib64/python2.4/site-packages/Numeric', >> '/usr/lib64/python2.4/site-packages/gtk-2.0'] >> >> No /usr/local/lib64/python2.4/site-packages in there... > > It will appear in sys.path only only if the directory exists: > > # mkdir -p /usr/local/lib64/python2.4/site-packages/ > $ python -c 'import sys; print sys.path;' > ['', '/usr/lib/python24.zip', '/usr/lib64/python2.4', > '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', > '/usr/lib64/python2.4/lib-dynload', > '/usr/lib64/python2.4/site-packages', > '/usr/local/lib64/python2.4/site-packages'] > ^^^^^^^
Oh, right, then it's fine :) > To be honest, I don't know why it works this way (my python knowledge is > quite limited), ask [EMAIL PROTECTED] if you have problems with the > current way it works: That's ok. Thanks for clarifying :) - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEP6N5r3NMWliFcXcRAkCLAJ94sm8Qr5p5zsB1NSYsriisfwPraACdGg4P JnLqGFxLytnmsPQHaBUIabQ= =jpGi -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
