]> git.mxchange.org Git - flightgear.git/commitdiff
lsprop: make included paths absolute
authormfranz <mfranz>
Tue, 19 Aug 2008 06:52:47 +0000 (06:52 +0000)
committermfranz <mfranz>
Tue, 19 Aug 2008 06:52:47 +0000 (06:52 +0000)
scripts/tools/lsprop

index 91ebca95c7c42dbdf6a902fd1c83eee82fd197a0..26c1b5273f4d2de6360cacbae33ef887b8595dc5 100755 (executable)
@@ -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: