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/2002-February/019987.html below:

[Python-Dev] Order that site-packages is added to sys.path

[Python-Dev] Order that site-packages is added to sys.path [Python-Dev] Order that site-packages is added to sys.pathM.-A. Lemburg mal@lemburg.com
Tue, 12 Feb 2002 11:52:05 +0100
"Martin v. Loewis" wrote:
> 
> - As a compromise, you might consider falling back to the email
>   package if you determine it is good enough at installation time, by
>   playing with xemail.__init__.__path__, or even replacing xemail with
>   email in the same way that xml is replaced with _xmlplus.

Those kind of hacks should not be needed if Barry puts his own
email package inside the Mailman package. All local imports
will pick up his version automatically; even though I'd suggest 
to use explicit imports for it in the Mailman code to avoid magical
problems ;-)

Hacking __path__ should really only be the last resort... it
(usually) breaks installers, gives importers a hard time, 
etc. 

We should not consider this good practice even though it
may be needed sometimes (e.g. by PyXML).

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/



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