Search for zip file not above of root_path
This commit is contained in:
1 parent
d80abe4548
commit
d174df442b
1 file changed
+2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user