Bug fixes

svn: r371
This commit is contained in:
Don Allingham
2001-09-01 03:57:55 +00:00
parent 20b0f7bc93
commit 6b99a80177
5 changed files with 15 additions and 13 deletions

View File

@@ -52,6 +52,7 @@ def import_photo(filename,path,prefix):
for index in range(0,1000):
name = "%s%s%s_%d.jpg" % (path,os.sep,prefix,index)
base = "%s_%d.jpg" % (prefix,index)
if os.path.exists(name) == 0:
break
@@ -79,7 +80,9 @@ def import_photo(filename,path,prefix):
else:
PIL.Image.open(filename).save(name)
except:
print path
return None
return name
#-------------------------------------------------------------------------