etherlab/__init__.py
author Edouard Tisserant
Tue, 25 May 2021 15:05:38 +0200
branchsvghmi
changeset 3248 ea93c14342d1
parent 2274 5cb9ef5351cc
child 3750 f62625418bff
permissions -rw-r--r--
Runtime: Fix exception "Worker is disabled" when connecting while PLC runtime is starting.

Pyro/wamp/UI delegate jobs to Worker, causing race condition if worker isn't already started.
Added a function to ensure that Worker is already created when pyro or UI starts
from __future__ import absolute_import

from etherlab.etherlab import *
from util.BitmapLibrary import AddBitmapFolder
import util.paths as paths

AddBitmapFolder(os.path.join(paths.AbsDir(__file__), "images"))