summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'ocrloader.py')
-rw-r--r--ocrloader.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/ocrloader.py b/ocrloader.py
index 3c6f7cb..160a71e 100644
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -12,12 +12,13 @@ import tempfile
import time
import shutil
-import argparse
-parser = argparse.ArgumentParser()
-parser.add_argument('--config', default='ocrloader.ini')
-args = parser.parse_args()
+import optparse
-config_filepath = args.config
+parser = optparse.OptionParser()
+parser.add_option('--config', dest='config', default='ocrloader.ini')
+(options, args) = parser.parse_args()
+
+config_filepath = options.config
import logging