equal
deleted
inserted
replaced
1 import os, sys |
1 import os, sys |
2 base_folder = os.path.split(sys.path[0])[0] |
2 base_folder = os.path.split(sys.path[0])[0] |
3 sys.path.append(os.path.join(base_folder, "CanFestival-3", "objdictgen")) |
3 sys.path.append(os.path.join(base_folder, "CanFestival-3", "objdictgen")) |
|
4 CanfestivalIncludePath = os.path.join(base_folder, "CanFestival-3", "include") |
|
5 CanfestivalLibPath = os.path.join(base_folder, "CanFestival-3", "src") |
4 |
6 |
5 from nodelist import NodeList |
7 from nodelist import NodeList |
6 from nodemanager import NodeManager |
8 from nodemanager import NodeManager |
7 import config_utils, gen_cfile |
9 import config_utils, gen_cfile |
8 from networkedit import networkedit |
10 from networkedit import networkedit |
81 master = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs()) |
83 master = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs()) |
82 res = gen_cfile.GenerateFile(Gen_OD_path, master) |
84 res = gen_cfile.GenerateFile(Gen_OD_path, master) |
83 if res : |
85 if res : |
84 raise Exception, res |
86 raise Exception, res |
85 |
87 |
86 return [(Gen_OD_path,"")],"" |
88 return [(Gen_OD_path,"-I"+CanfestivalIncludePath)],"" |
87 |
89 |
88 class RootClass: |
90 class RootClass: |
89 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
91 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
90 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
92 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
91 <xsd:element name="CanFestivalInstance"> |
93 <xsd:element name="CanFestivalInstance"> |
97 """ |
99 """ |
98 |
100 |
99 PlugChildsTypes = [("CanOpenNode",_NodeListPlug)] |
101 PlugChildsTypes = [("CanOpenNode",_NodeListPlug)] |
100 |
102 |
101 def PlugGenerate_C(self, buildpath, locations, logger): |
103 def PlugGenerate_C(self, buildpath, locations, logger): |
102 return [],"" |
104 return [],"-L"+CanfestivalLibPath+" -lcanfestival" |
103 |
105 |
104 |
106 |