Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27948

Re: sys.path in python3.3

From Ned Deily <nad@acm.org>
Subject Re: sys.path in python3.3
Date 2012-08-26 14:23 -0700
References <CAAu18hc7katbONp7A+-A1pyE8BYySgfaC4FHHKSD8peeQjLMbg@mail.gmail.com> <nad-80CE8C.12211526082012@news.gmane.org> <CAAu18hc8tKnuCqcoiOVyPa1yc9QgvU-BqUOe91r7G3Ye8HG9NA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3854.1346016213.4697.python-list@python.org> (permalink)

Show all headers | View raw


In article 
<CAAu18hc8tKnuCqcoiOVyPa1yc9QgvU-BqUOe91r7G3Ye8HG9NA@mail.gmail.com>,
 Nicholas Cole <nicholas.cole@gmail.com> wrote:

> On Sun, Aug 26, 2012 at 8:21 PM, Ned Deily <nad@acm.org> wrote:
> > In article
> > <CAAu18hc7katbONp7A+-A1pyE8BYySgfaC4FHHKSD8peeQjLMbg@mail.gmail.com>,
> >  Nicholas Cole <nicholas.cole@gmail.com> wrote:
> >> In all previous versions of python, I've been able to install packages
> >> into the path:
> >>
> >> ~/Library/Python/$py_version_short/site-packages
> >>
> >> but in the rc builds of python 3.3 this is no longer part of sys.path.
> >>
> >> Before I go hacking the install, is there a reason that this path was
> >> removed?  Is there a recommended way to get it back, or is this a
> >> gentle way of pushing us all to use virtualenv rather than installing
> >> user-specific packages?
> >
> > It should be working if you are using an OS X framework build.  What is
> > the value of sys.path?
> 
> I'm using the compiled version supplied by python.org.

The directory needs to exist otherwise the path is not included (see 
site.py).

-- 
 Ned Deily,
 nad@acm.org

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sys.path in python3.3 Ned Deily <nad@acm.org> - 2012-08-26 14:23 -0700

csiph-web