[Distutils] Symlinks vs API -- question for developers

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 22 01:50:11 CEST 2008


Josselin Mouette:

> Unless you want to be able to follow existing standards.
> 
> http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout

All you need for that is a category called "icons". I don't
see anything there about putting different sizes of icon in
different places on different platforms.

Once you're in the icons location, the path from there to the
flavour of icon you want is fixed by that spec. So the way
you reference it is using something like.

   resource.read(module, "icon", "%s/48x48/apps/foo.png" % theme)

-- 
Greg



More information about the Distutils-SIG mailing list