--- a/LPCManager.py Mon Jun 05 15:49:27 2017 +0200
+++ b/LPCManager.py Tue Jun 06 10:07:39 2017 +0200
@@ -6,12 +6,6 @@
-from raven import Client
-client = Client('https://2d582ee8f9234cc08283f8a686c92dae:631a5b935bf64b36b5a2d1781af437b2@sentry.io/174818')
__version__ = "$Revision$"
@@ -31,7 +25,6 @@
#wxversion.select(['2.8', '3.0'])
wxversion.select(['3.0'])
- # from wx.lib.pubsub import pub
@@ -96,6 +89,21 @@
from util.BitmapLibrary import AddBitmapFolder
AddBitmapFolder(os.path.join(_lpcmanager_path, "images"))
+ config = wx.ConfigBase.Get() + report = str(config.Read("Report")) + config.Write("Report", '0') + from raven import Client + client = Client('https://2d582ee8f9234cc08283f8a686c92dae:631a5b935bf64b36b5a2d1781af437b2@sentry.io/174818') _lpcmanager_path = os.path.split(__file__)[0]
@@ -176,48 +184,6 @@
from py_ext import PythonFileCTNMixin
-def _Generate_C(self, buildpath, locations):
- # Generate confnodes [(Cfiles, CFLAGS)], LDFLAGS, DoCalls, extra_files
- # extra_files = [(fname,fobject), ...]
- gen_result = self.CTNGenerate_C(buildpath, locations)
- CTNCFilesAndCFLAGS, CTNLDFLAGS, DoCalls = gen_result[:3]
- extra_files = gen_result[3:]
- # if some files have been generated put them in the list with their location
- LocationCFilesAndCFLAGS = [(self.GetCurrentLocation(), CTNCFilesAndCFLAGS, DoCalls)]
- LocationCFilesAndCFLAGS = []
- # confnode asks for some LDFLAGS
- # LDFLAGS can be either string
- if type(CTNLDFLAGS) == type(str()) or type(CTNLDFLAGS) == type(unicode()):
- elif type(CTNLDFLAGS) == type(list()):
- LDFLAGS = CTNLDFLAGS[:]
- # recurse through all children, and stack their results
- for CTNChild in self.IECSortedChildren():
- new_location = CTNChild.GetCurrentLocation()
- # How deep are we in the tree ?
- depth = len(new_location)
- _LocationCFilesAndCFLAGS, _LDFLAGS, _extra_files = \
- # filter locations that start with current IEC location
- [loc for loc in locations if loc["LOC"][0:depth] == new_location])
- LocationCFilesAndCFLAGS += _LocationCFilesAndCFLAGS
- extra_files += _extra_files
- return LocationCFilesAndCFLAGS, LDFLAGS, extra_files
-ConfigTreeNode._Generate_C = _Generate_C
def CTNGenerate_C(self, buildpath, locations):
# location string for that CTN
location_str = "_".join(map(lambda x: str(x),
@@ -1208,15 +1174,18 @@
# -------------------------------------------------------------------------------
# CANFESTIVAL CONFNODE HACK
# -------------------------------------------------------------------------------
-# from canfestival import canfestival
-# class LPC_canfestival_config:
-# def getCFLAGS(self, *args):
-# def getLDFLAGS(self, *args):
-# canfestival.local_canfestival_config = LPC_canfestival_config()
+from canfestival import canfestival +defaultGetCFLAGS = canfestival.local_canfestival_config.getCFLAGS +defaultGetLDFLAGS = canfestival.local_canfestival_config.getLDFLAGS + return str(defaultGetCFLAGS(*args)) + return str(defaultGetLDFLAGS(*args)) +canfestival.local_canfestival_config.getCFLAGS = getCFLAGS +canfestival.local_canfestival_config.getLDFLAGS = getLDFLAGS import LPCBus as LPCBus_mod
@@ -2513,8 +2482,6 @@
if __name__ == '__main__':
from threading import Thread, Timer, Semaphore, Lock
@@ -2917,9 +2884,4 @@
- # errmess = traceback.format_exc()
- # print("Traceback: {}\n{}".format(e, errmess))
\ No newline at end of file
\ No newline at end of file