~lifeless/bzrtools/setup

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Aaron Bentley
  • Date: 2009-12-01 03:24:57 UTC
  • mfrom: (736.1.1 shell-dir)
  • Revision ID: aaron@aaronbentley.com-20091201032457-ng4w9ssd2uavdf3c
Merge support for shell -d.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
        return CompletionContext(text, command=cmd).get_completions()
228
228
 
229
229
 
230
 
def run_shell():
 
230
def run_shell(directory=None):
231
231
    try:
 
232
        if not directory is None:
 
233
            os.chdir(directory)
232
234
        prompt = PromptCmd()
233
235
        while True:
234
236
            try: