Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
FABRE Mathis
tao-concours-tools
Commits
28145535
Commit
28145535
authored
4 years ago
by
Gerald Oster
Browse files
Options
Download
Email Patches
Plain Diff
[feature] create output_dir if it does not exist
parent
d284cbca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/create_testtakers.py
src/create_testtakers.py
+2
-0
No files found.
src/create_testtakers.py
View file @
28145535
...
...
@@ -4,6 +4,7 @@
import
os
import
re
import
sys
from
pathlib
import
Path
import
csv
import
json
from
dataclasses
import
dataclass
...
...
@@ -137,6 +138,7 @@ students = load_students_from_csv_file(CSV_DIR + '/' + CSV_FILE)
# File encoding: utf8
OUTPUT_DIR
=
'../output'
Path
(
OUTPUT_DIR
).
mkdir
(
parents
=
False
,
exist_ok
=
True
)
save_students_as_json_file
(
f
'
{
OUTPUT_DIR
}
/
{
base_filename
}
.json'
,
students
)
...
...
This diff is collapsed.
Click to expand it.
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