etisserant@49: # module which import C files as strings etisserant@49: etisserant@49: import os etisserant@49: etisserant@49: def code(name): etisserant@49: filename = os.path.join(os.path.split(__file__)[0],name + ".c") etisserant@49: if os.path.exists(filename): etisserant@49: return open(filename).read() etisserant@49: else: etisserant@49: return "#error %s target not implemented !!!\n"%name etisserant@203: etisserant@203: from PLCObject import PLCObject etisserant@203: import ServicePublisher