Create images directory if necessary.

svn: r625
This commit is contained in:
David Hampton 2001-12-16 03:39:25 +00:00
parent 51dfa5bd52
commit 72d21d6a0c

View File

@ -867,6 +867,19 @@ def on_ok_clicked(obj):
dir_name) dir_name)
return return
image_dir_name = os.path.join(dir_name, "images")
if not os.path.isdir(image_dir_name) and not no_photos:
try:
os.mkdir(image_dir_name)
except IOError, value:
GnomeErrorDialog(_("Could not create the directory : %s") % \
image_dir_name + "\n" + value[1])
return
except:
GnomeErrorDialog(_("Could not create the directory : %s") % \
image_dir_name)
return
filter = filter_map[filterName] filter = filter_map[filterName]
ind_list = [] ind_list = []