Commit 0109c4c6 authored by Ilya Ovodov's avatar Ilya Ovodov

fix

parent 6c4851a0
...@@ -101,7 +101,7 @@ class AttrDict(OrderedDict): ...@@ -101,7 +101,7 @@ class AttrDict(OrderedDict):
if file_name is None: if file_name is None:
file_name = os.path.join(self.get_base_filename(), 'param.txt') file_name = os.path.join(self.get_base_filename(), 'param.txt')
if not can_overwrite: if not can_overwrite:
assert not os.path.exists(file_name), "Can't save parameters to {}: File exists".format(params_fn) assert not os.path.exists(file_name), "Can't save parameters to {}: File exists".format(file_name)
if create_dirs: if create_dirs:
dir_name = os.path.dirname(os.path.dirname(file_name)) dir_name = os.path.dirname(os.path.dirname(file_name))
os.makedirs(dir_name, exist_ok=True) os.makedirs(dir_name, exist_ok=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment