~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-10 03:56:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050510035602-242e1d56bc16e870
todo

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
    def __init__(self, path):
146
146
        self.path = path
147
147
 
 
148
        # TODO: If either of these fail, we should detect that and
 
149
        # assume that path is not really a bzr plugin after all.
 
150
 
148
151
        pipe = os.popen('%s --bzr-usage' % path, 'r')
149
152
        self.takes_options = pipe.readline().split()
150
153
        self.takes_args = pipe.readline().split()