Skip to content

Commit

Permalink
Added a CCI directory structure test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Braun committed Jul 19, 2019
1 parent f7f841a commit a8056cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __init__(self, name, log_dir, tmp_dir=None, html_file=None, indent=0,
# log_dir
# -------
if not os.path.exists(log_dir):
os.mkdir(log_dir)
os.makedirs(log_dir)

# tmp_dir
# -------
Expand All @@ -169,11 +169,11 @@ def __init__(self, name, log_dir, tmp_dir=None, html_file=None, indent=0,
if tmp_dir is None:
top_tmp_dir = os.path.join(log_dir, 'tmp')
if not os.path.exists(top_tmp_dir):
os.mkdir(top_tmp_dir)
os.makedirs(top_tmp_dir)
now = datetime.datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
self.tmp_dir = os.path.join(top_tmp_dir, now)
if not os.path.exists(self.tmp_dir):
os.mkdir(self.tmp_dir)
os.makedirs(self.tmp_dir)
else:
self.tmp_dir = tmp_dir

Expand Down

0 comments on commit a8056cc

Please sign in to comment.