[Distutils] Cross-platform way to get default directory for binary files like console scripts?
Paul Moore
p.f.moore at gmail.com
Fri Feb 21 14:24:36 CET 2014
On 21 February 2014 08:55, Piotr Dobrogost
<p at google-groups-2014.dobrogost.net> wrote:
> Hi!
>
> I posted (https://groups.google.com/forum/#!topic/comp.lang.python/s3vLkVy2xJk)
> to comp.lang.python yesterday the following question:
>
> -------
> Is there cross-platform way to get default directory for binary files
> (console scripts for instance) the same way one can use sys.executable
> to get path to the Python's interpreter in cross-platform way?
sysconfig.get_path("scripts") should work. If you're on a Python too
old to have sysconfig then sorry, I've no idea (other than "you should
upgrade" :-))
Paul
More information about the Distutils-SIG
mailing list