forked from orbit-oss/flask
Corrected prefix detection
This commit is contained in:
parent
175d43b2f9
commit
e328eba97c
2 changed files with 5 additions and 3 deletions
|
|
@ -577,6 +577,8 @@ class Flask(_PackageBoundObject):
|
|||
parent, folder = os.path.split(site_parent)
|
||||
if folder.lower() == 'lib':
|
||||
base_dir = parent
|
||||
elif os.path.basename(parent).lower() == 'lib':
|
||||
base_dir = os.path.dirname(parent)
|
||||
else:
|
||||
base_dir = site_parent
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue