A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-October/129816.html below:

[Python-Dev] Usefulness of site-python?

[Python-Dev] Usefulness of site-python? [Python-Dev] Usefulness of site-python?Antoine Pitrou solipsis at pitrou.net
Wed Oct 23 11:46:44 CEST 2013
Hello,

I've just discovered there is a little-known feature in site.py: if a
$PREFIX/lib/site-python exists (e.g. /usr/lib/site-python), it is added
to sys.path in addition to the versioned site-packages. But only under
Unix ("if os.sep == '/'").

Has anyone seen that feature in the real world? Debian doesn't use
site-python, but its own /usr/share/pyshared.

For the record, it was added in b53347c8260e with the following commit
message:

user:        Guido van Rossum <guido at python.org>
date:        Wed Sep 03 21:41:30 1997 +0000
files:       Lib/site.py
description:
Give in to Mike Meyer -- add *both* lib/python1.5/packages and
lib/site-python to the path (if they exist).  This is a reasonable
compromise.


Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4