From 8b2920c29659357b964355d9624dd09de068d580 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 27 Jan 2017 14:00:28 +0100 Subject: [PATCH] Add relative path to file info --- src/Content/ContentManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index f13b3e2d..6a23439c 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -315,6 +315,7 @@ class ContentManager(object): if back: back["content_inner_path"] = content_inner_path back["optional"] = False + back["relative_path"] = "/".join(inner_path_parts) return back # Check in optional files @@ -323,6 +324,7 @@ class ContentManager(object): if back: back["content_inner_path"] = content_inner_path back["optional"] = True + back["relative_path"] = "/".join(inner_path_parts) return back # Return the rules if user dir