Commit 5aeed774 authored by Neeme Kahusk's avatar Neeme Kahusk

test for zipfile

parent dd6eb6f0
0.3.2
\ No newline at end of file
0.3.3
\ No newline at end of file
#!/usr/bin/env python
"""Tabeldaja makes csv file from Meta-Share export XML
One infile, finds type all by itself.
"""
#import os
#import os.path
import argparse
#import re
import csv
import tempfile
from zipfile import ZipFile
from zipfile import ZipFile, is_zipfile
from pathlib import Path
from lxml import etree
......@@ -78,12 +76,10 @@ def main():
labels = make_filter()
if args.zip:
if is_zipfile(args.infile):
tulem = zip2roots(args.infile)
tulemitabel = featured_rows(tulem, labels)
csv_out(args.outfile, tulemitabel, SIMPLE)
else:
p = Path(args.infile)
if p.is_dir():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment