Skip to content

Commit 114d280

Browse files
committed
Merge remote-tracking branch 'origin/fix_relative_path' into cache_key
# Conflicts: # executorlib/task_scheduler/file/hdf.py
2 parents 93eb9f1 + 0e18dbc commit 114d280

File tree

1 file changed

+2
-2
lines changed
  • executorlib/task_scheduler/file

1 file changed

+2
-2
lines changed

executorlib/task_scheduler/file/hdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def dump(file_name: Optional[str], data_dict: dict) -> None:
1818
"""
1919
if file_name is not None:
2020
file_name_abs = os.path.abspath(file_name)
21-
os.makedirs(os.path.join("/", *file_name_abs.split(os.sep)[:-1]), exist_ok=True)
22-
with h5py.File(file_name, "a") as fname:
21+
os.makedirs(os.path.dirname(file_name_abs), exist_ok=True)
22+
with h5py.File(file_name_abs, "a") as fname:
2323
for data_key, data_value in data_dict.items():
2424
if data_key in group_dict:
2525
fname.create_dataset(

0 commit comments

Comments
 (0)