Commit 9dbbb3ce authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Try loading property file

parent 20430b14
......@@ -2,7 +2,7 @@
# Resource object code
#
# Created: Wed Feb 25 12:44:26 2015
# Created: Thu Mar 19 22:03:05 2015
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
......
......@@ -200,6 +200,22 @@ class sdlHandler(QObject):
self.check_state()
self.init_state = self.current_hash = self.on_event()
self.init_timers()
# Try loading property file
self.load_properties()
def load_properties(self):
''' Try loading a shared object with properties to verify
Properties are e.g. stop conditions, processed by the "properties.py"
module, and transformed to Ada code compiled as a dynamic library.
There may be several properties, this function tries to retrieve
them all without a priori knowledge of their content '''
try:
prop_dll = ctypes.CDLL('lib{}_stop_conditions.so'
.format(self.proc.processName))
except OSError as err:
self.log_area.addItem('No properties to load')
else:
self.log_area.addItem('Found property file')
@Slot()
def startStop(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment