handle public folder shenanigans

main
Anish Lakhwara 2022-07-11 14:40:55 +10:00
parent a2935a5251
commit 50f7ee786d
1 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,10 @@ def clean_path(path):
items = path_clean.split('\\')
else:
items = path_clean.split('/')
# TODO ugly hack to handle poonam outputting public, but we want ./
print(items)
if items[0] == 'public':
items[0] = './'
path_items = {
"slug": None,