* src/DbPrompter.py: fix handling of spaces when creating a new

file - use open instead of "touch"


svn: r4733
This commit is contained in:
Don Allingham
2005-05-30 15:16:12 +00:00
parent 1fc782a60e
commit ebfbdce49b
2 changed files with 6 additions and 1 deletions

View File

@@ -472,7 +472,8 @@ class NewSaveasDbPrompter:
continue
filetype = type_selector.get_value()
if filetype == 'auto':
os.system('touch %s' % filename)
new_file = open(filename, "w")
new_file.close()
filetype = get_mime_type(filename)
(the_path,the_file) = os.path.split(filename)
choose.destroy()