Init config if not already done
This commit is contained in:
@@ -18,7 +18,7 @@ from pynput import keyboard
|
|||||||
from notifypy import Notify
|
from notifypy import Notify
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
from owocr import *
|
from owocr.ocr import *
|
||||||
from owocr.config import Config
|
from owocr.config import Config
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -234,6 +234,9 @@ def run(read_from='clipboard',
|
|||||||
websocket_port = 7331
|
websocket_port = 7331
|
||||||
notifications = False
|
notifications = False
|
||||||
|
|
||||||
|
if not config:
|
||||||
|
init_config()
|
||||||
|
|
||||||
if config.has_config:
|
if config.has_config:
|
||||||
if config.get_general('engines'):
|
if config.get_general('engines'):
|
||||||
for config_engine in config.get_general('engines').split(','):
|
for config_engine in config.get_general('engines').split(','):
|
||||||
|
|||||||
Reference in New Issue
Block a user