Let extensions start at the last period after the last slash in the

name.
This commit is contained in:
Sjoerd Mullender 1994-12-14 15:29:17 +00:00
parent 1cfb6b8992
commit 4359860517

View file

@ -62,7 +62,12 @@ def splitext(p):
for c in p:
if c == '/':
root, ext = root + ext + c, ''
elif c == '.' or ext:
elif c == '.':
if ext:
root, ext = root + ext, c
else:
ext = c
elif ext:
ext = ext + c
else:
root = root + c