X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fmainwindow.py;h=620b000f3f6a5d3d551eb4fe40497241033f487a;hp=b85ce0dc0da966bbf1596f14434dd9fcf4cf0bc1;hb=96d786458551cb101e9ccd046e98cd03e331345e;hpb=dbbfa474c21a64527aa0f3e4c0af911737783d76 diff --git a/sface/mainwindow.py b/sface/mainwindow.py index b85ce0d..620b000 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -17,7 +17,7 @@ def locate_image_file (filename): for dir in [ '/usr/share' ] : for suffix in ['png','jpg']: attempt=os.path.join(dir,'images',"%s.%s"%(filename,suffix)) - if os.path.is_file(attempt) : return attempt + if os.path.isfile(attempt) : return attempt return os.path.join('/could/not/locate/image/file',filename)