~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/externalcommand.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-01 17:11:25 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051201171125-5e1f0970246c4925
Updated the bzr sourcecode to use bzrlib.osutils.pathjoin rather than os.path.join to enforce internal use of / instead of \

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import sys
24
24
 
25
25
from bzrlib.commands import Command
 
26
from bzrlib.osutils import pathjoin
26
27
 
27
28
 
28
29
class ExternalCommand(Command):
37
38
            ## Empty directories are not real paths
38
39
            if not dir:
39
40
                continue
40
 
            path = os.path.join(dir, cmd)
 
41
            path = pathjoin(dir, cmd)
41
42
            if os.path.isfile(path):
42
43
                return ExternalCommand(path)
43
44