Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ~/.local not in sys.path?

Reply
Thread Tools

~/.local not in sys.path?

 
 
skip@pobox.com
Guest
Posts: n/a
 
      03-27-2009
I don't see ~/.local in sys.path. Is this some feature which needs to be
enabled? I was kind of unclear after reading the section on it in the 2.6
What's New document.

Thx,

--
Skip Montanaro - - http://www.smontanaro.net/
 
Reply With Quote
 
 
 
 
Дамјан Георгиевски
Guest
Posts: n/a
 
      03-27-2009
> I don't see ~/.local in sys.path. Is this some feature which needs to
> be enabled? I was kind of unclear after reading the section on it in
> the 2.6 What's New document.


Here it is,
/home/damjan/.local/lib/python2.6/site-packages
by default no special settings (on ArchLinux if it matters).


This is unless I set PYTHONUSERBASE=~/my-python



--
дамјан ( http://softver.org.mk/damjan/ )

When you do things right, people won't be sure if you did anything at
all.

 
Reply With Quote
 
 
 
 
skip@pobox.com
Guest
Posts: n/a
 
      03-28-2009
>> I don't see ~/.local in sys.path.

$,1(T(P(\(x(P(](B> Here it is,
$,1(T(P(\(x(P(](B> /home/damjan/.local/lib/python2.6/site-packages
$,1(T(P(\(x(P(](B> by default no special settings (on ArchLinux if it matters).

Thanks. I have such a large sys.path (too many eggs) that I didn't see it.
When I got a bit more precise in my search it revealed itself:

>>> [p for p in sys.path if '.local' in p]

['/Users/skip/.local/lib/python2.7/site-packages']

--
Skip Montanaro - - http://www.smontanaro.net/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To be not, or not to be not? Ruby Freak Ruby 2 09-23-2008 08:04 AM
Why not 'foo = not f' instead of 'foo = (not f or 1) and 0'? Kristian Domke Python 11 01-23-2008 07:27 PM
'' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long. rote ASP .Net 2 01-23-2008 03:07 PM
Cisco 3640 3620 3600 not detecting, not enabling, not working: NM-2FE2W Taki Soho Cisco 0 09-22-2004 07:28 AM
maintaining control with cookies (not strictly an ASP or even server side question. But not not either) Stephanie Stowe ASP General 2 04-07-2004 04:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57