Skip to content
Myr

Added comments for two branches in the instance detection

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent e328eba · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:flask/app.py+2 added
573 unmodified lines
574 if package_path.startswith(py_prefix):575 base_dir = py_prefix576 elif site_folder == 'site-packages':577 parent, folder = os.path.split(site_parent)578 # Windows like installations579 if folder.lower() == 'lib':580 base_dir = parent581 # UNIX like installations582 elif os.path.basename(parent).lower() == 'lib':583 base_dir = os.path.dirname(parent)584 else:585 base_dir = site_parent
971 unmodified lines