From 74f4af59f631ef154ffe6f34d8e525a05f97d4a6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 10 Aug 2011 17:51:49 +0200 Subject: [PATCH] Added comments for two branches in the instance detection --- flask/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flask/app.py b/flask/app.py index 03c7ce32..2cad86e2 100644 --- a/flask/app.py +++ b/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: