Skip to content

Commit

Permalink
fix the prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
geyang committed Apr 27, 2021
1 parent ea64bcd commit d82eee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ml_logger/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.5
0.7.6
3 changes: 2 additions & 1 deletion ml_logger/ml_logger/ml_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def __init__(self, root_dir: str = None, prefix=None, *prefixae, buffer_size=204
self.summary_caches = defaultdict(partial(SummaryCache, **(summary_cache_opts or {})))

# todo: add https support
self.root_dir = interpolate(root_dir) or os.getcwd()
self.root_dir = interpolate(root_dir) or "/"
self.prefix = interpolate(prefix) or os.getcwd()[1:]
if prefix is not None:
self.prefix = os.path.join(*[interpolate(p) for p in (prefix, *prefixae) if p is not None])

Expand Down

0 comments on commit d82eee2

Please sign in to comment.