From 271e9076c1a6a79d1dcaf1428420f8b11b63c824 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 24 Feb 2014 11:02:09 -0500 Subject: [PATCH] Fix relative paths for non-collection resources in confetty --- bin/confetty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/confetty b/bin/confetty index 10a8a918..b4845cd6 100755 --- a/bin/confetty +++ b/bin/confetty @@ -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] != '/'):