2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Fix relative paths for non-collection resources in confetty

This commit is contained in:
Jarrod Johnson 2014-02-24 11:02:09 -05:00
parent a8ee40250c
commit 271e9076c1

View File

@ -298,7 +298,7 @@ def fullpath_target(path, forcepath=False):
del targparts[-1]
else:
targparts.append(component)
if forcepath and len(targparts) == 0 or targparts[-1] != "":
if forcepath and (len(targparts) == 0 or targparts[-1] != ""):
targparts.append('')
ntarget = '/'.join(targparts)
if forcepath and (len(ntarget) == 0 or ntarget[-1] != '/'):