~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Gordon Tyler
  • Date: 2009-11-16 20:47:28 UTC
  • mto: This revision was merged to the branch mainline in revision 737.
  • Revision ID: gordon@doxxx.net-20091116204728-0gotohw3tlpjhrwy
Added --directory option to shell command.

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: