From e4a264617b3f22508bf2aeab5cd696cb534a16d1 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Tue, 15 Dec 2020 14:15:01 +0300 Subject: [PATCH] Minor fix BC Old Start --- .../pyOpenRPA/Orchestrator/__Orchestrator__.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py index e338f268..a2318a9d 100644 --- a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py +++ b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py @@ -796,15 +796,6 @@ from .. import __version__ # Get version from the package def Orchestrator(inGSettings): lL = inGSettings["Logger"] - # Append Orchestrator def to ProcessorDictAlias - lModule = sys.modules[__name__] - lModuleDefList = dir(lModule) - for lItemDefNameStr in lModuleDefList: - # Dont append alias for defs Orchestrator and ___deprecated_orchestrator_start__ - if lItemDefNameStr not in ["Orchestrator", "___deprecated_orchestrator_start__"]: - lItemDef = getattr(lModule,lItemDefNameStr) - if callable(lItemDef): inGSettings["ProcessorDict"]["AliasDefDict"][lItemDefNameStr]=lItemDef - #mGlobalDict = Settings.Settings(sys.argv[1]) gSettingsDict = inGSettings # Alias for old name in alg inGSettings["VersionStr"] = __version__ @@ -855,6 +846,15 @@ def Orchestrator(inGSettings): # Turn on backward compatibility BackwardCompatibility.Update(inGSettings= gSettingsDict) + # Append Orchestrator def to ProcessorDictAlias + lModule = sys.modules[__name__] + lModuleDefList = dir(lModule) + for lItemDefNameStr in lModuleDefList: + # Dont append alias for defs Orchestrator and ___deprecated_orchestrator_start__ + if lItemDefNameStr not in ["Orchestrator", "___deprecated_orchestrator_start__"]: + lItemDef = getattr(lModule,lItemDefNameStr) + if callable(lItemDef): inGSettings["ProcessorDict"]["AliasDefDict"][lItemDefNameStr]=lItemDef + #Инициализация сервера lThreadServer = Server.RobotDaemonServer("ServerThread", gSettingsDict) lThreadServer.start()