Distutils postinstall script: useless?

Thomas Heller theller at python.net
Wed Nov 30 17:02:18 EST 2005


Mardy <mardy at users.sourceforge.net> writes:

> Le die Wed, 30 Nov 2005 15:46:43 +0000, Mardy ha scribite:
>>   the bdist_wininst command of distutils allows me to specify a script to
>> be executed at the end of the installation. That's great, but how can I
>> know the installation path from inside the script?
>
> Answering to myself, sys.prefix combined with the dictionary
> INSTALL_SCHEMES from distutils.commands.install might do the work.

See also the functions in distutils.sysconfig.

Thomas



More information about the Python-list mailing list