]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/tinyos/misc/tos-deluge
Correct the PATH_PY_BUILD_IMAGE to autodetect the tos-build-deluge-image.
[tinyos-2.x.git] / tools / tinyos / misc / tos-deluge
index 7d8f6e293984299e5113b9e7b2aa6d747080d20a..6542c78c4d84fbbe8ec3e60a4a78cdec4f65452e 100755 (executable)
@@ -29,7 +29,7 @@ from datetime import datetime
 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