forked from kubapok/kleister-nda-clone
Add reading input file
This commit is contained in:
parent
204154a45c
commit
72f787c21b
17
main.py
Normal file
17
main.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import csv
|
||||||
|
import sys
|
||||||
|
import lzma
|
||||||
|
|
||||||
|
|
||||||
|
def main(fname):
|
||||||
|
print(fname)
|
||||||
|
with lzma.open(fname, mode="rt", encoding="utf-8") as tsvfile:
|
||||||
|
reader = csv.reader(tsvfile, delimiter='\t', quoting=csv.QUOTE_NONE)
|
||||||
|
for item in reader:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
raise Exception("Input file not provided")
|
||||||
|
main(sys.argv[1])
|
Loading…
Reference in New Issue
Block a user