From: Ondrej Lichtner <olichtne(a)redhat.com>
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>
---
lnst/Controller/XmlParser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.8.5.3