This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, re, glob | |
file = 'm384-import-1.xml' | |
filenames = glob.glob("*.xml") | |
counter = 2 | |
outputfile = file | |
for fname in filenames: | |
in_size = (os.stat(fname).st_size / 1000000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv, xml, re, time, os, datetime, argparse | |
import xml.etree.ElementTree as ET | |
# Construct python command like: python reformat_partner_xml.py | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--series', dest='series', metavar='SERIES', | |
action='store') | |
parser.add_argument('--objects', dest='objects', metavar='OBJECTS', | |
action='store') |