find_file and find_folder do not return null string if the file or folder resp. do not exist (coding typo)

svn: r21267
This commit is contained in:
Tim G L Lyons 2013-02-01 17:35:37 +00:00
parent b34eea702b
commit a50e83fa5f

View File

@ -70,6 +70,9 @@ def find_file( filename):
if os.path.isfile(fname):
return fname
except UnicodeError:
pass
# not found
return ''
def find_folder( filename):
@ -84,6 +87,9 @@ def find_folder( filename):
if os.path.isdir(fname):
return fname
except UnicodeError:
pass
# not found
return ''
def get_unicode_path_from_file_chooser(path):