5734: have one style file for dual-named reports

svn: r19948
This commit is contained in:
Paul Franklin 2012-07-04 16:11:51 +00:00
parent e73eec36aa
commit 3e9cc045eb

View File

@ -657,7 +657,9 @@ class OptionHandler(_options.OptionHandler):
def get_stylesheet_savefile(self):
"""Where to save user defined styles for this report."""
filename = "%s.xml" % self.module_name
# Get the first part of name, if it contains a comma:
# (will just be module_name, if no comma)
filename = "%s.xml" % self.module_name.split(",")[0]
return os.path.join(HOME_DIR, filename)
def get_default_stylesheet_name(self):