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
DipSO
tsv2properties
Commits
4af34589
Commit
4af34589
authored
Feb 28, 2022
by
dimitri.szabo
Browse files
Input checks
parent
392e30b3
Pipeline
#51524
failed with stage
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tsv2properties.py
View file @
4af34589
...
...
@@ -99,6 +99,9 @@ def tsvsToProperties(tsv_dir: str, properties_dir: str)-> None:
tsv_dir: Chemin vers le répertoire contentant les tsvs.
properties_dir: Chemin vers le répertoire où générer les properties.
"""
# @ToDo: corriger les chemins invalides ex. fin sans "/" -> change le nom et pas le répertoire
for
tsv
in
os
.
listdir
(
tsv_dir
):
singleTsvToProperties
(
tsv_dir
+
tsv
,
properties_dir
+
os
.
path
.
splitext
(
tsv
)[
0
]
+
".properties"
)
\ No newline at end of file
# Si le chemin ne finit pas par "/" le script change le nom et pas le répertoire
if
not
tsv_dir
.
endswith
(
"/"
):
tsv_dir
+=
"/"
for
file
in
os
.
listdir
(
tsv_dir
):
if
file
.
endswith
(
".tsv"
):
singleTsvToProperties
(
tsv_dir
+
file
,
properties_dir
+
os
.
path
.
splitext
(
tsv
)[
0
]
+
".properties"
)
\ No newline at end of file
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