Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
95b62361
Commit
95b62361
authored
Sep 21, 2023
by
jonabur
Browse files
fix bug with output path in CWD
parent
00209e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.py
main.py
+3
-1
No files found.
main.py
View file @
95b62361
...
...
@@ -77,7 +77,9 @@ def main():
print
(
dumped
)
if
args
.
output_path
:
os
.
makedirs
(
os
.
path
.
dirname
(
args
.
output_path
),
exist_ok
=
True
)
dirname
=
os
.
path
.
dirname
(
args
.
output_path
)
if
dirname
:
os
.
makedirs
(
dirname
,
exist_ok
=
True
)
with
open
(
args
.
output_path
,
"w"
)
as
f
:
f
.
write
(
dumped
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment