~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/externalcommand.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:56:54 UTC
  • mfrom: (1185.16.59)
  • Revision ID: robertc@robertcollins.net-20051017115654-662239e1587524a8
mergeĀ fromĀ martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        bzrpath = os.environ.get('BZRPATH', '')
35
35
 
36
36
        for dir in bzrpath.split(os.pathsep):
37
 
            ## Empty directories are not real paths
38
 
            if not dir:
39
 
                continue
40
37
            path = os.path.join(dir, cmd)
41
38
            if os.path.isfile(path):
42
39
                return ExternalCommand(path)