X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fmainwindow.py;h=ab19e072c7e226b5669f8ff84cd406b99d93022c;hp=620b000f3f6a5d3d551eb4fe40497241033f487a;hb=6077c4fc31174ec178889729bb8cc18a3765ef02;hpb=ad50fd04935bb38bab240d816963ac4c2513cce2 diff --git a/sface/mainwindow.py b/sface/mainwindow.py index 620b000..ab19e07 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -13,8 +13,9 @@ from sface.screens.mainscreen import MainScreen from sface.screens.helpscreen import HelpScreen # depending on the platform.. +# could probably use Qt's resource system but looks overkill for just one file... def locate_image_file (filename): - for dir in [ '/usr/share' ] : + for dir in [ '/usr/share', '/Applications/sface.app/Contents/Resources/sface' ] : for suffix in ['png','jpg']: attempt=os.path.join(dir,'images',"%s.%s"%(filename,suffix)) if os.path.isfile(attempt) : return attempt