Reinstate inadvertent removal of rev 19988 change for bug 5900

svn: r21327
This commit is contained in:
Tim G L Lyons 2013-02-09 21:12:19 +00:00
parent c56bd35ce0
commit 539fed3314
2 changed files with 8 additions and 2 deletions

View File

@ -187,7 +187,10 @@ class DocReportDialog(ReportDialog):
spath = self.get_default_directory()
default_name = self.dbname + "_" + \
"".join(x[0].upper() for x in self.raw_name.split("_"))
base = "%s.%s" % (default_name, ext)
if self.options.get_output():
base = os.path.basename(self.options.get_output())
else:
base = "%s.%s" % (default_name, ext)
spath = os.path.normpath(os.path.join(spath, base))
self.target_fileentry.set_filename(spath)

View File

@ -168,7 +168,10 @@ class GraphvizReportDialog(ReportDialog):
spath = self.get_default_directory()
default_name = self.dbname + "_" + \
"".join(x[0].upper() for x in self.raw_name.split("_"))
base = "%s%s" % (default_name, ext)
if self.options.get_output():
base = os.path.basename(self.options.get_output())
else:
base = "%s%s" % (default_name, ext)
spath = os.path.normpath(os.path.join(spath, base))
self.target_fileentry.set_filename(spath)