Browse Source

Added comments for two branches in the instance detection

pull/302/head
Armin Ronacher 14 years ago
parent
commit
74f4af59f6
  1. 2
      flask/app.py

2
flask/app.py

@ -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…
Cancel
Save