Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'distutils': 0.07; 'subject:files': 0.09; 'way:': 0.09; 'api': 0.11; 'cc:addr:python- list': 0.11; 'benjamin': 0.16; 'cc:name:python list': 0.16; 'clunky': 0.16; 'piotr': 0.16; 'subject: \n ': 0.16; 'subject:default': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'trying': 0.19; 'pfxlen:0': 0.19; 'cc:addr:python.org': 0.22; 'of.': 0.24; 'subject:like': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'wondering': 0.29; 'generally': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'info': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'subject:?': 0.36; "you're": 0.61; '20,': 0.68; 'default': 0.69; 'subject:get': 0.81; 'oscar': 0.84; 'to:addr:p': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=E2DDDu2X/F7MRWNA5xEycF8qdiyatM2YDtDdLesGMzw=; b=PRY7exTR4Beox5TbL1UgaAr4Pn3oQWyXu4A1h60zy6enp9ZWSR4oLKxdK/f/BACFTD M9Vmc+2oz4gMR9O0YdPvUrhglsm9iw1rSHi2zjrv4D1mgd/a33JZes14CGcU7HzKXAUy V0WtXeEs3wx7UUa0SuwKIWxB9pzQ5RKy/RVp7tb7bdBZVr5whADLanl3qsN8rbJEp6ff prQ42/JigDovJO/l5Y6Q86bg3dLXJgd8wKeBtpQwO3Ph6ma+VFpeTgiPOMlbOEhOBOWx 5SUZV7IPtIN5u2TZwn90WVSkEiaYPUqbPk4/3K/oO2x5xKUHGGRAv7E9vQPeJ2rkg5ww 35Fw== X-Received: by 10.221.55.133 with SMTP id vy5mr1371952vcb.17.1392911113223; Thu, 20 Feb 2014 07:45:13 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <991f7bda-7313-4192-9e56-410a454b79d8@googlegroups.com> References: <405ad1dc-691e-4c71-adfd-c19c599ad555@googlegroups.com> <991f7bda-7313-4192-9e56-410a454b79d8@googlegroups.com> From: Oscar Benjamin Date: Thu, 20 Feb 2014 15:44:53 +0000 Subject: Re: Cross-platform way to get default directory for binary files like console scripts? To: Piotr Dobrogost Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392911120 news.xs4all.nl 2929 [2001:888:2000:d::a6]:39884 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66764 On 20 February 2014 15:34, Piotr Dobrogost wrote: > On Thursday, February 20, 2014 4:22:53 PM UTC+1, Oscar Benjamin wrote: > >> You can find the default location in this roundabout way: > > I'm wondering if there's some API to get this info as what you showed is really roundabout way to achieve the goal... There may be something that I don't know of. Distutils is generally pretty clunky though if you're not trying to do one of the exact things it was designed to do. Oscar