~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/externalcommand.py

  • Committer: Robert Collins
  • Date: 2005-11-13 18:57:26 UTC
  • mfrom: (1185.31.9)
  • Revision ID: robertc@robertcollins.net-20051113185726-39ede10d746eee6d
Merge Johns current integration work.

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
37
40
            path = os.path.join(dir, cmd)
38
41
            if os.path.isfile(path):
39
42
                return ExternalCommand(path)