forked from orbit-oss/flask
Added comments for two branches in the instance detection
This commit is contained in:
parent
e328eba97c
commit
74f4af59f6
1 changed files with 2 additions and 0 deletions
|
|
@ -575,8 +575,10 @@ class Flask(_PackageBoundObject):
|
|||
base_dir = py_prefix
|
||||
elif site_folder == 'site-packages':
|
||||
parent, folder = os.path.split(site_parent)
|
||||
# Windows like installations
|
||||
if folder.lower() == 'lib':
|
||||
base_dir = parent
|
||||
# UNIX like installations
|
||||
elif os.path.basename(parent).lower() == 'lib':
|
||||
base_dir = os.path.dirname(parent)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue