On Tue, Sep 10, 2013 at 11:16 PM, Ned Deily <n...@acm.org> wrote:

> The behavior is the result of a feature added in 2.7 for Issue4865 which
> appends the site-packages directory for the Apple-supplied system Python
> to sys.path of a Python framework build.  With hindsight, I don't think
> this was a good idea


yeah, probably not....


> The path appends occur in the standard library "site" module.  You could
> patch it in your own interpreter to not include /Library/Python; you
> might be also be able to do it by supplying a "sitecustomize" module.
> See site.py for details.
>
>
Could you simply remove it from sys.path at start-up for your app?
(probably when you toss out PYTHONPATH)

-Chris

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to