[Tinyos-commits] CVS: tinyos-1.x/tools/python/pytos/tools Rpc.py,
1.5, 1.6
Kamin Whitehouse
kaminw at users.sourceforge.net
Tue Apr 11 20:31:09 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/tools/python/pytos/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7291/pytos/tools
Modified Files:
Rpc.py
Log Message:
making it more robust in finding the rpcSchema.xml file
Index: Rpc.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/python/pytos/tools/Rpc.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Rpc.py 12 Jan 2006 22:50:45 -0000 1.5
--- Rpc.py 12 Apr 2006 03:31:06 -0000 1.6
***************
*** 221,226 ****
""" Find function defs in rpcSchema.xml file and create function objects."""
# Check for the rpcSchema.xml file
! if not os.path.isfile("%srpcSchema.xml" % app.buildDir) :
! raise Exception("""\nWARNING: cannot find file \"%srpcSchema.xml\". No rpc commands will be imported.""" % app.buildDir)
RoutingMessages.RoutingMessages.__init__(self, app)
--- 221,228 ----
""" Find function defs in rpcSchema.xml file and create function objects."""
# Check for the rpcSchema.xml file
! try :
! xmlFilename = nescDecls.findBuildFile(app.buildDir, "rpcSchema.xml")
! except:
! raise Exception("""\nWARNING: cannot find file \"rpcSchema.xml\". No rpc commands will be imported.""")
RoutingMessages.RoutingMessages.__init__(self, app)
More information about the Tinyos-commits
mailing list