Changeset 29756 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- May 24, 2010 6:45:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r29754 r29756 136 136 g_hasreadline = True 137 137 try: 138 import readline 139 import rlcompleter 138 if g_hasreadline: 139 import readline 140 import rlcompleter 140 141 except: 141 142 g_hasreadline = False … … 2765 2766 exts = os.listdir(shextdir) 2766 2767 for e in exts: 2767 addExtsFromFile(ctx, cmds, os.path.join(shextdir,e)) 2768 # not editor temporary files, please. 2769 if e.endswith('.py'): 2770 addExtsFromFile(ctx, cmds, os.path.join(shextdir,e)) 2768 2771 2769 2772 def getHomeFolder(ctx): 2770 2773 if ctx['remote'] or ctx['vb'] is None: 2774 if 'VBOX_USER_HOME' is os.environ: 2775 return os.path.join(os.environ['VBOX_USER_HOME']) 2771 2776 return os.path.join(os.path.expanduser("~"), ".VirtualBox") 2772 2777 else:
Note:
See TracChangeset
for help on using the changeset viewer.