commit 6e10ff9206e8b114352a745a634e2d3107ad7746
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Mon Mar 3 16:00:40 2014 +0100
XmlParser: save full filename in element objects
I'm not exactly sure why we would only store the full path in the root
element and the following elements would only use the basename of the
file. This comit changes that so that the absolute path is stored in all
element objects.
This will be usefull when figuring out the point of reference for
non xinclude attributes that refer to files.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/XmlParser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/XmlParser.py b/lnst/Controller/XmlParser.py
index 32bbf2a..a342cf4 100644
--- a/lnst/Controller/XmlParser.py
+++ b/lnst/Controller/XmlParser.py
@@ -161,7 +161,7 @@ class XmlParser(object):
elem.attrib["__file"] = filename
for e in elem:
- self._init_loc(e, os.path.basename(filename))
+ self._init_loc(e, filename)
return elem