cleaner app starting, new application settings class
This commit is contained in:
@@ -14,13 +14,13 @@ from pathlib import Path
|
||||
|
||||
#import qsingleton #ZAC: orig. code
|
||||
#from CoordinatesModel import CoordinatesModel #ZAC: orig. code
|
||||
from app_config import settings, appsconf, option
|
||||
from app_config import AppCfg #settings, option, appsconf
|
||||
|
||||
EMBL_RESULTS_TIMEOUT = "embl/results_timeout"
|
||||
|
||||
EMBL_SAVE_FILES = "embl/save_files"
|
||||
|
||||
embl = appsconf["embl"]
|
||||
#embl = appsconf["embl"]
|
||||
|
||||
#import imageio
|
||||
import numpy as np
|
||||
@@ -72,6 +72,7 @@ class EmblMessage(QObject):
|
||||
|
||||
def __init__(self, parent=None, **kwargs):
|
||||
super(EmblMessage, self).__init__(parent, **kwargs)
|
||||
return #ZAC: orig. code
|
||||
if not embl["enabled"]:
|
||||
return
|
||||
context = zmq.Context()
|
||||
|
||||
Reference in New Issue
Block a user