From d174df442ba6d3c375b85997fe2a8e183f57d77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 May 2011 17:03:08 +0200 Subject: [PATCH] Search for zip file not above of root_path --- trytond/tools/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/tools/misc.py b/trytond/tools/misc.py index 95092baaa2..0639eab3ed 100644 --- a/trytond/tools/misc.py +++ b/trytond/tools/misc.py @@ -119,6 +119,8 @@ def file_open(name, mode="r", subdir='modules'): name2 = False while True: head, tail = os.path.split(head) + if head == root_path: + break if not tail: break if zipname: