Skip to content
Open

fix1 #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion HardwareObjectFileParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


import logging
import importlib
import xml.sax
from xml.sax.handler import ContentHandler

Expand Down Expand Up @@ -88,7 +89,8 @@ def load_module(hardware_object_name):
Returns:
[type]: [description]
"""
return __import__(hardware_object_name, globals(), locals(), [""])
print(hardware_object_name)
return importlib.import_module(hardware_object_name)


def instanciate_class(module_name, class_name, object_name):
Expand Down
2 changes: 1 addition & 1 deletion HardwareObjects/abstract/AbstractNState.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ def re_emit_values(self):
# One would normally call super(AbstractNState ...), however we want to call
# re_emit_values of HardwareObject to avoid the limit handling implemented in
# AbstractActuator
super(AbstractActuator, self).re_emit_values()
# super(AbstractActuator, self).re_emit_values()