Changeset 96 for trunk/python/Rappture/interface.py
- Timestamp:
- Oct 10, 2005 3:29:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/Rappture/interface.py
r55 r96 14 14 # Copyright (c) 2005 Purdue Research Foundation, West Lafayette, IN 15 15 # ====================================================================== 16 import getopt, sys 16 import getopt, sys, os 17 17 import atexit 18 18 import Rappture … … 46 46 lib = Rappture.library('<?xml version="1.0"?><run><tool>' + 47 47 '<about>Press Simulate to view results.</about>' + 48 '<command> ' +argv[0]+ ' -d @driver</command></tool></run>')48 '<command>python ' +argv[0]+ ' -d @driver</command></tool></run>') 49 49 50 50 for module in args: … … 54 54 s.put(lib) 55 55 56 f = open("driver.xml","w") 56 toolFileName = "tool.xml" 57 f = open(toolFileName,"w") 57 58 f.write( lib.xml() ) 58 59 f.close() 59 60 60 61 print 'launch the gui...' 62 # 63 # this doesnt work, but needs to. when we 64 # os.execvp('driver', driverArgs ) with following definition of 65 # driverArgs (and we change the name of toolFileName), program 66 # does not send the driver program the arguments as expected. 67 # 68 #driverArgs = ('-tool', toolFileName) 69 driverArgs = () 70 os.execvp('driver', driverArgs ) 61 71 sys.exit(0) 62 72
Note: See TracChangeset
for help on using the changeset viewer.