diff options
Diffstat (limited to 'bin/yp/srtool_yp.py')
-rwxr-xr-x | bin/yp/srtool_yp.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/yp/srtool_yp.py b/bin/yp/srtool_yp.py index 552eadf1..6caa7863 100755 --- a/bin/yp/srtool_yp.py +++ b/bin/yp/srtool_yp.py @@ -26,25 +26,16 @@ 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: srtDbName = 'srt.sqlite' @@ -142,9 +133,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:]) |