commit 3c6236ce368cb6a331704bfd368c98e674c155ce
Author: Jiri Pirko <jiri(a)resnulli.us>
Date: Mon Sep 10 13:22:08 2012 +0200
normalize path and allow ".."
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
Common/XmlProcessing.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Common/XmlProcessing.py b/Common/XmlProcessing.py
index 8d92e83..5aa7ccd 100644
--- a/Common/XmlProcessing.py
+++ b/Common/XmlProcessing.py
@@ -363,4 +363,4 @@ class RecipeParser(XmlParser):
raise XmlProcessingError(str(err), node)
def _get_referenced_xml_path(self, filename):
- return os.path.join(self._include_root, os.path.expanduser(filename))
+ return os.path.normpath(os.path.join(self._include_root,
os.path.expanduser(filename)))
Show replies by date