Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Creates a Flask app and temporary folders. If the scripts were frozen with PyInstaller, the paths to the template and static folder are adjusted accordingly. """
root = pathlib.Path(sys._MEIPASS) app = flask.Flask(import_name=__name__, template_folder=str(pathlib.Path(root, "templates")), static_folder=str(pathlib.Path(root, "static")), **kwargs) else: |