Changeset 12689 in vbox for trunk/src/libs/xpcom18a4/python/sample/shellcommon.py
- Timestamp:
- Sep 24, 2008 2:32:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/sample/shellcommon.py
r12411 r12689 300 300 return 0 301 301 302 303 def evalCmd(ctx, args): 304 expr = ' '.join(args[1:]) 305 try: 306 exec expr 307 except Exception, e: 308 print 'failed: ',e 309 if g_verbose: 310 traceback.print_exc() 311 return 0 312 302 313 aliases = {'s':'start', 303 314 'i':'info', … … 318 329 'aliases':['Shows aliases', aliasesCmd], 319 330 'verbose':['Toggle verbosity', verboseCmd], 320 'setvar':['Set VMs variable: "setvar Fedora BIOSSettings.ACPIEnabled True"', setvarCmd], 331 'setvar':['Set VMs variable: setvar Fedora BIOSSettings.ACPIEnabled True', setvarCmd], 332 'eval':['Evaluate arbitrary Python construction: eval for m in getMachines(ctx): print m.name,"has",m.memorySize,"M"', evalCmd], 321 333 'quit':['Exits', quitCmd], 322 334 'host':['Show host information', hostCmd]}
Note:
See TracChangeset
for help on using the changeset viewer.