After clean install of sonata from source, using:
python2 ./setup.py install --prefix=/usr/local
Files and dirs which should go in /usr/local/share/ end up in
Can you try the fix-issue-5 branch and tell me what do you think?
Most of the data are now out of the egg directory (locale, man, doc), except the pixmaps, which are considered "part of the application". Translations should be working again by the way (I guess it was broken since everything was into the egg directory).
stat64("/usr/local/share/pixmaps/sonata.png", 0xbf87526c) = -1 ENOENT (No such file or directory)
stat64("/usr/share/pixmaps/sonata.png", 0xbf87526c) = -1 ENOENT (No such file or directory)
write(2, "[2012-01-01 16:58:11] sonata.mai"..., 77[2012-01-01 16:58:11] sonata.main: 'sonata.png' cannot be found. Aborting...
Because it is here:
Hum, the file is actually at the right place, and I changed the code so it doesn't look anymore at all those places...
Can you have a look at sonata/main.py path_to_icon() method (line 3451) and tell me the call result of pkg_resources.resource_filename()?
Edit: and also __name__ and __name__.__file__, thanks!
Hm, yes it works now. Possibly my bad...