mirror of
https://github.com/ilri/csv-metadata-quality-web.git
synced 2024-11-26 08:28:19 +01:00
main.py: Actually use sys.argv
I set this but never actually passed it to the subprocess. Now I'm wondering if I actually need it, or if that was just when I was tr- ying to import the csv-metadata-quality module?
This commit is contained in:
parent
f1de00d7ca
commit
0471820f3a
2
main.py
2
main.py
@ -64,7 +64,7 @@ def process_file(base64slug):
|
|||||||
# run subprocess and capture output as UTF-8 so we get a string instead of
|
# run subprocess and capture output as UTF-8 so we get a string instead of
|
||||||
# bytes for ansi2html
|
# bytes for ansi2html
|
||||||
results = subprocess.run(
|
results = subprocess.run(
|
||||||
["csv-metadata-quality", "-i", input_file, "-o", output_file],
|
["csv-metadata-quality"] + sys.argv[1:],
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
encoding="UTF-8",
|
encoding="UTF-8",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user