fix
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 23 May 2011 11:22:27 +0000 (13:22 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 23 May 2011 11:22:27 +0000 (13:22 +0200)
sface/mainwindow.py

index b85ce0d..620b000 100644 (file)
@@ -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)