Changeset 21998 in vbox for trunk/src/VBox
- Timestamp:
- Aug 5, 2009 2:09:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r21965 r21998 509 509 print " Image at: %s" %(vdvd.location) 510 510 print " Size: %s" %(vdvd.size) 511 print " Id: %s" %(vdvd.id) 511 512 print 512 513 … … 806 807 def reloadExtCmd(ctx, args): 807 808 # maybe will want more args smartness 808 checkUserExtensions(ctx, commands, ctx['vb'].homeFolder)809 checkUserExtensions(ctx, commands, getHomeFolder(ctx)) 809 810 autoCompletion(commands, ctx) 810 811 return 0 … … 1032 1033 addExtsFromFile(ctx, cmds, os.path.join(shextdir,e)) 1033 1034 1035 def getHomeFolder(ctx): 1036 if ctx['remote'] or ctx['vb'] is None: 1037 return os.path.join(os.path.expanduser("~"), ".VirtualBox") 1038 else: 1039 return ctx['vb'].homeFolder 1040 1034 1041 def interpret(ctx): 1035 1042 if ctx['remote']: … … 1041 1048 if vbox is not None: 1042 1049 print "Running VirtualBox version %s" %(vbox.version) 1043 ctx['perf'] = ctx['global'].getPerfCollector(ctx['vb']) 1044 home = vbox.homeFolder 1050 ctx['perf'] = ctx['global'].getPerfCollector(vbox) 1045 1051 else: 1046 1052 ctx['perf'] = None 1047 home = os.path.join(os.path.expanduser("~"), ".VirtualBox") 1048 1053 1054 home = getHomeFolder(ctx) 1049 1055 checkUserExtensions(ctx, commands, home) 1050 1056
Note:
See TracChangeset
for help on using the changeset viewer.