mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
SF patch #474590 -- RISC OS support
This commit is contained in:
parent
c6ac8a78f6
commit
e2ae77b8b8
33 changed files with 256 additions and 188 deletions
|
|
@ -103,8 +103,10 @@ def join(a, *p):
|
|||
j= a
|
||||
for b in p:
|
||||
(fs, drive, path)= _split(b)
|
||||
if fs!='' or drive!='' or path[:1] in _roots:
|
||||
if j=='' or fs!='' or drive!='' or path[:1] in _roots:
|
||||
j= b
|
||||
elif j[-1]==':':
|
||||
j= j+b
|
||||
else:
|
||||
j= j+'.'+b
|
||||
return j
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue