git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops
[sface.git]
/
sface
/
mainwindow.py
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
b85ce0d
..
620b000
100644
(file)
--- 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))
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)
return os.path.join('/could/not/locate/image/file',filename)