forked from kubapok/kleister-nda-clone
18 lines
387 B
Python
18 lines
387 B
Python
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])
|