mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes #630
This commit is contained in:
parent
cb5f66ffe0
commit
385a18563c
2 changed files with 7 additions and 2 deletions
|
|
@ -501,8 +501,9 @@ def split_all(path):
|
|||
['a', 'b', 'c']
|
||||
"""
|
||||
components = []
|
||||
path = path.lstrip('/')
|
||||
while path:
|
||||
head,tail = os.path.split(path)
|
||||
head, tail = os.path.split(path)
|
||||
if tail:
|
||||
components.insert(0, tail)
|
||||
elif head == path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue