Skip to content

Commit f56fd2a

Browse files
committed
Add path generation for longer file paths.
1 parent 3e102b8 commit f56fd2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

common/benchmark_def.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def format_benchmark_config_arguments(self, dictfileparam):
108108

109109
configOut = dictfileparam.copy()
110110
kwall = self.additional_definitions + self.registered_conf
111-
#print('Kwall', kwall)
112111

113112
for d in kwall: # self.additional_definitions:
114113
if d['name'] in configOut.keys():

common/file_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def get_file(fname, origin, unpack=False,
9595
unpack_fpath = None
9696

9797
fpath = os.path.join(datadir, fname)
98+
if not os.path.exists(os.path.dirname(fpath)):
99+
os.makedirs(os.path.dirname(fpath))
98100

99101
download = False
100102
if os.path.exists(fpath) or (unpack_fpath is not None and os.path.exists(unpack_fpath)):

0 commit comments

Comments
 (0)