[Tinyos-commits] CVS: tinyos-1.x/tools/python/apps PytosShell.py, 1.1, 1.2

Kamin Whitehouse kaminw at users.sourceforge.net
Tue Sep 27 23:57:15 PDT 2005


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

Modified Files:
	PytosShell.py 
Log Message:
PytosShell now uses the new ParseArgs module.

Index: PytosShell.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/python/apps/PytosShell.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PytosShell.py	23 Sep 2005 10:20:33 -0000	1.1
--- PytosShell.py	28 Sep 2005 06:57:12 -0000	1.2
***************
*** 51,67 ****
  
  import sys
- import pytos.tools.Rpc as Rpc
- import pytos.tools.RamSymbols as RamSymbols
  import pytos.util.NescApp as NescApp
  
! buildDir = None
! if len(sys.argv) > 1:
!     buildDir = sys.argv[1]
! 
! port = None
! if len(sys.argv) > 2:
!     port = sys.argv[2]
! 
! # import the enums and types in the nesc app that I am working with
! app = NescApp.NescApp(buildDir, port, tosbase=True)
  
--- 51,58 ----
  
  import sys
  import pytos.util.NescApp as NescApp
+ import pytos.util.ParseArgs as ParseArgs
  
! args = ParseArgs.ParseArgs(sys.argv)
! app = NescApp.NescApp(args.buildDir, args.motecom, tosbase=True, localCommOnly=True)
  



More information about the Tinyos-commits mailing list