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


Groups > comp.lang.python > #66771

Re: Cross-platform way to get default directory for binary files like console scripts?

From Ned Batchelder <ned@nedbatchelder.com>
Subject Re: Cross-platform way to get default directory for binary files like console scripts?
Date 2014-02-20 11:26 -0500
References <405ad1dc-691e-4c71-adfd-c19c599ad555@googlegroups.com> <mailman.7188.1392909800.18130.python-list@python.org> <991f7bda-7313-4192-9e56-410a454b79d8@googlegroups.com> <le57ph$t7g$1@ger.gmane.org> <CAHVvXxQaXpcim6sK3ATy31aBivYyZwvfv_Nou1B4sJCgRJE9XA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.7194.1392913610.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2/20/14 10:55 AM, Oscar Benjamin wrote:
> On 20 February 2014 15:42, Ned Batchelder <ned@nedbatchelder.com> wrote:
>>
>> As roundabout and advanced as that code is, it doesn't give the right answer
>> for me.  It returns None.  On my Mac, after activating a virtualenv:
>>
>>      Python 2.7.2 (default, Oct 11 2012, 20:14:37)
>>      [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on
>> darwin
>>      Type "help", "copyright", "credits" or "license" for more information.
>>      >>> from distutils.command.install import install
>>      >>> from distutils.dist import Distribution
>>      >>> c = install(Distribution())
>
> You forgot to call  c.finalize_options() here which actually sets all
> of these attributes.
>

Ah, good! Thanks!


-- 
Ned Batchelder, http://nedbatchelder.com

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


Thread

Cross-platform way to get default directory for binary files like console scripts? Piotr Dobrogost <p@google-groups-2014.dobrogost.net> - 2014-02-20 06:27 -0800
  Re: Cross-platform way to get default directory for binary files like console scripts? Ned Batchelder <ned@nedbatchelder.com> - 2014-02-20 10:11 -0500
  Re: Cross-platform way to get default directory for binary files like console scripts? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-20 15:22 +0000
    Re: Cross-platform way to get default directory for binary files like console scripts? Piotr Dobrogost <p@google-groups-2014.dobrogost.net> - 2014-02-20 07:34 -0800
      Re: Cross-platform way to get default directory for binary files like console scripts? Ned Batchelder <ned@nedbatchelder.com> - 2014-02-20 10:42 -0500
        Re: Cross-platform way to get default directory for binary files like console scripts? Piotr Dobrogost <p@google-groups-2014.dobrogost.net> - 2014-02-20 07:55 -0800
      Re: Cross-platform way to get default directory for binary files like console scripts? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-20 15:44 +0000
      Re: Cross-platform way to get default directory for binary files like console scripts? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-02-20 15:55 +0000
      Re: Cross-platform way to get default directory for binary files like console scripts? Ned Batchelder <ned@nedbatchelder.com> - 2014-02-20 11:26 -0500
      Re: Cross-platform way to get default directory for binary files like console scripts? Piotr Dobrogost <p@google-groups-2014.dobrogost.net> - 2014-02-21 06:12 -0800

csiph-web