etherlab/__init__.py
author Edouard Tisserant
Mon, 31 Aug 2020 13:54:08 +0200
changeset 2706 65f35ac97cd6
parent 2274 5cb9ef5351cc
child 3750 f62625418bff
permissions -rw-r--r--
Attempt to workaround problem reported about empty plc.xml after unrelated crash. Now, if etree model is corrupted in a way tostring() would generate an empty string, exception prevents saving.
2274
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     1
from __future__ import absolute_import
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     2
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     3
from etherlab.etherlab import *
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     4
from util.BitmapLibrary import AddBitmapFolder
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     5
import util.paths as paths
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     6
5cb9ef5351cc Load images for EtherCAT extension
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2022
diff changeset
     7
AddBitmapFolder(os.path.join(paths.AbsDir(__file__), "images"))