Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psot.repository
Commits
326b3e1d
Commit
326b3e1d
authored
Feb 28, 2017
by
Lukas Jelonek
Browse files
Fixed bug: wrong test. Added verbosity
parent
2d7a73c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/split_json_into_separate_files.py
View file @
326b3e1d
...
...
@@ -11,9 +11,9 @@ parser.add_argument('--output', '-o', required=True, help='The name of the outpu
args
=
parser
.
parse_args
()
# check if output directory exists and create it if not
output_dir
=
args
.
output
if
os
.
path
.
exists
(
output_dir
)
and
os
.
path
.
isdir
(
output_dir
):
print
(
"Output exists and is not a directory"
)
output_dir
=
os
.
path
.
abspath
(
args
.
output
)
if
os
.
path
.
exists
(
output_dir
)
and
not
os
.
path
.
isdir
(
output_dir
):
print
(
"Output
"
+
output_dir
+
"
exists and is not a directory"
)
exit
(
1
)
if
not
os
.
path
.
exists
(
output_dir
):
os
.
mkdir
(
output_dir
)
...
...
Write
Preview
Supports
Markdown
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