[Tinyos-commits] CVS: tinyos-1.x/tools/python/pytos/util NescApp.py, 1.4, 1.5

Kamin Whitehouse kaminw at users.sourceforge.net
Fri Jan 13 09:53:15 PST 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/python/pytos/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26742

Modified Files:
	NescApp.py 
Log Message:
allowing dom file to be passed in

Index: NescApp.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/python/pytos/util/NescApp.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** NescApp.py	12 Jan 2006 22:50:45 -0000	1.4
--- NescApp.py	13 Jan 2006 17:53:13 -0000	1.5
***************
*** 451,459 ****
      self.tosbase=tosbase
      self.localCommOnly=localCommOnly
!     if xmlFileDOM == None :
!       try:
!         xmlFilename = findBuildFile(buildDir, "nescDecls.xml")
!       except:
!         raise Exception("""\nERROR: cannot find file \"nescDecls.xml\".
  
  Your nesC app cannot be imported.
--- 451,458 ----
      self.tosbase=tosbase
      self.localCommOnly=localCommOnly
!     try:
!       xmlFilename = findBuildFile(buildDir, "nescDecls.xml")
!     except:
!       raise Exception("""\nERROR: cannot find file \"nescDecls.xml\".
  
  Your nesC app cannot be imported.
***************
*** 463,466 ****
--- 462,466 ----
  
  """ % buildDir)
+     if xmlFileDOM == None :
        xmlFileDOM = minidom.parse(xmlFilename)
  



More information about the Tinyos-commits mailing list