aboutsummaryrefslogtreecommitdiffstats
path: root/bin/acme/srtool_acme.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/acme/srtool_acme.py')
-rwxr-xr-xbin/acme/srtool_acme.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/bin/acme/srtool_acme.py b/bin/acme/srtool_acme.py
index b3453dff..0e33de0e 100755
--- a/bin/acme/srtool_acme.py
+++ b/bin/acme/srtool_acme.py
@@ -32,34 +32,23 @@
import os
import sys
-import re
-import csv
-import xml.etree.ElementTree as ET
import argparse
import sqlite3
-import subprocess
import json
-import urllib
-from datetime import datetime
# 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
-from datetime import datetime, date
-from urllib.request import urlopen, URLError
-from urllib.parse import urlparse
-
+# Setup:
+verbose = False
srtDbName = 'srt.sqlite'
-
#################################
# Helper methods
#
-verbose = False
-
def debugMsg(msg):
if verbose:
print(msg)
@@ -153,9 +142,6 @@ def main(argv):
print("Command not found")
if __name__ == '__main__':
- global script_pathname
- global srtool_basepath
-
srtool_scriptpath = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
srtool_basepath = os.path.dirname(srtool_scriptpath)
main(sys.argv[1:])