flask.helpers get_root_path Example Code

get_root_path is a function within the flask.helpers module of the Flask framework. get_root_path returns the filesystem path to a package or the current working directly if the path cannot be found.

flash, make_response, safe_join, send_file, and url_for are several other callables with code examples from the same flask.helpers package.

Example 1 from indico

indico (project website, documentation and sandbox demo) is a Flask-based web app for event management. The code is open sourced under the MIT license.

indico / indico / cli / setup.py