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: