From 96d786458551cb101e9ccd046e98cd03e331345e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 23 May 2011 13:22:27 +0200 Subject: [PATCH] fix --- sface/mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0