import os.path
# Path to the python script that builds Deluge image from XML
-PATH_PY_BUILD_IMAGE = './tos-build-deluge-image'
+PATH_PY_BUILD_IMAGE = os.path.join(os.path.dirname(sys.argv[0]), 'tos-build-deluge-image')
# TinyOS serial communication parameters
FM_AMID = 0xAB
if success == True:
packet = s.sniff_am()
while packet and packet.type == 100:
- print "".join([chr(i) for i in p.data])
+ print "".join([chr(i) for i in packet.data])
packet = s.sniff_am()
reply = SerialReplyPacket(packet.data)
if reply.error == ERROR_SUCCESS: