Changeset 28651 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 23, 2010 2:25:06 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60511
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r28650 r28651 33 33 import time 34 34 import re 35 36 HISTORY_FILENAME=os.path.join(os.environ["HOME"], ".vboxshell_history")37 35 38 36 # Simple implementation of IConsoleCallback, one can use it as skeleton … … 2066 2064 commands['connect'] = ["Connect to remote VBox instance", connectCmd, 0] 2067 2065 commands['disconnect'] = ["Disconnect from remote VBox instance", disconnectCmd, 0] 2068 2066 2069 2067 vbox = ctx['vb'] 2070 2068 … … 2078 2076 checkUserExtensions(ctx, commands, home) 2079 2077 2078 hist_file=os.path.join(home, ".vboxshell_history") 2080 2079 autoCompletion(commands, ctx) 2081 2082 if g_hasreadline and os.path.exists( HISTORY_FILENAME):2083 readline.read_history_file( HISTORY_FILENAME)2080 2081 if g_hasreadline and os.path.exists(hist_file): 2082 readline.read_history_file(hist_file) 2084 2083 2085 2084 # to allow to print actual host information, we collect info for … … 2113 2112 pass 2114 2113 if g_hasreadline: 2115 readline.write_history_file( HISTORY_FILENAME)2114 readline.write_history_file(hist_file) 2116 2115 2117 2116 def runCommandCb(ctx, cmd, args):
Note:
See TracChangeset
for help on using the changeset viewer.