1
0
Fork 0

lsprop: make included paths absolute

This commit is contained in:
mfranz 2008-08-19 06:52:47 +00:00
parent 9c2b9af40d
commit 1a2dd7e63e

View file

@ -127,7 +127,7 @@ class parse_xml_file(xml.sax.handler.ContentHandler):
self.type = attrs["type"]
if attrs.has_key("include"):
path = os.path.dirname(self.path) + "/" + attrs["include"]
path = os.path.dirname(os.path.abspath(self.path)) + "/" + attrs["include"]
if attrs.has_key("omit-node") and attrs["omit-node"] == "y" or self.level == 1:
self.stack.append([None, None, self.stack[-1][2], []])
else: