Distutils question

Peter Hansen peter at engcorp.com
Thu Sep 8 08:23:06 EDT 2005


Laszlo Zsolt Nagy wrote:
> How how can I install my .mo files from a distutil script into its 
> default location?
> 
> sys.prefix + os.sep + 'share' + os.sep + 'locale'

I can't answer the first question, but the latter should be written this 
way instead

    os.path.join(sys.prefix, 'share', 'locale')

for greater portability and maintainability.

-Peter



More information about the Python-list mailing list