From 6077c4fc31174ec178889729bb8cc18a3765ef02 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 23 May 2011 16:17:04 +0200 Subject: [PATCH] search path for the logo image on mac --- sface/mainwindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.0