~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-01 17:25:16 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-20051201172516-5232226cd9ec1f0e
A couple more path.join statements needed changing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        raise BzrError('invalid file kind %r' % kind)
98
98
 
99
99
def lexists(f):
 
100
    if hasattr(os.path, 'lexists'):
 
101
        return os.path.lexists(f)
100
102
    try:
101
103
        if hasattr(os, 'lstat'):
102
104
            os.lstat(f)
129
131
        return os.path.realpath(path).replace('\\', '/')
130
132
    def pathjoin(*args):
131
133
        return os.path.join(*args).replace('\\', '/')
 
134
# Because these shrink the path, we can use the original
 
135
# versions on any platform
 
136
dirname = os.path.dirname
 
137
basename = os.path.basename
132
138
 
133
139
def normalizepath(f):
134
140
    if hasattr(os.path, 'realpath'):