diff options
Diffstat (limited to 'bin/acme/srtool_defect.py')
-rwxr-xr-x | bin/acme/srtool_defect.py | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/bin/acme/srtool_defect.py b/bin/acme/srtool_defect.py index 2cf58375..77f8e030 100755 --- a/bin/acme/srtool_defect.py +++ b/bin/acme/srtool_defect.py @@ -21,25 +21,26 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ### Usage Examples (run from top level directory) -# Updating Defect System Issues: ./bin/acme/srtool_defect.py -U - +# Updating Defect System Issues: ./bin/<app>/srtool_defect.py -U import os import sys -import re -import csv -import xml.etree.ElementTree as ET import argparse import sqlite3 -import subprocess import json -from time import sleep # load the srt.sqlite schema indexes dir_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(0, dir_path) from common.srt_schema import ORM +# Setup: +master_log = '' +force_update = False +verbose = False +srt_user = '' +srt_passwd = '' + srtDbName = 'srt.sqlite' srtErrorLog = 'srt_errors.txt' @@ -47,8 +48,6 @@ srtErrorLog = 'srt_errors.txt' # Helper methods # -verbose = False - def debugMsg(msg): if verbose: print(msg) @@ -296,8 +295,6 @@ def main(argv): sys.exit("Command '%s' not found" % args.command) if __name__ == '__main__': - global srtool_basepath - if verbose: print("srtool_defect(%s)" % sys.argv[1:]) # fetch any environment overrides |