Skip to content

Commit

Permalink
correct location of debug log in help message, store baselines with o…
Browse files Browse the repository at this point in the history
…riginal filename
  • Loading branch information
jedwards4b committed Aug 19, 2016
1 parent 4e5facf commit 96c3c18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions utils/python/CIME/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ def generate_baseline(case, baseline_dir=None):
num_gen += len(hists)
for hist in hists:
ext = get_extension(model, hist)
basename = "%s.%s.nc" % (model, ext)
baseline = os.path.join(basegen_dir, basename)
baseline = os.path.join(basegen_dir, os.path.basename(hist))
if os.path.exists(baseline):
os.remove(baseline)

Expand Down
4 changes: 3 additions & 1 deletion utils/python/CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,10 @@ def get_project(machobj=None):
return None

def setup_standard_logging_options(parser):
helpfile = "%s.log"%sys.argv[0]
helpfile = os.path.join(os.getcwd(),os.path.basename(helpfile))
parser.add_argument("-d", "--debug", action="store_true",
help="Print debug information (very verbose) to file %s.log" % sys.argv[0])
help="Print debug information (very verbose) to file %s" % helpfile)
parser.add_argument("-v", "--verbose", action="store_true",
help="Add additional context (time and file) to log messages")
parser.add_argument("-s", "--silent", action="store_true",
Expand Down

0 comments on commit 96c3c18

Please sign in to comment.