coerce unipath objects to strings in app.py

- This change allows the VSCode debugger to work with the app, since it
expects filepaths to be string objects
This commit is contained in:
graham-dds 2019-09-19 10:29:54 -04:00
parent b58c3d1222
commit dab1efd564

View File

@ -49,8 +49,8 @@ def make_app(config):
app = Flask( app = Flask(
__name__, __name__,
template_folder=parent_dir.child("templates").absolute(), template_folder=str(object=parent_dir.child("templates").absolute()),
static_folder=parent_dir.child("static").absolute(), static_folder=str(object=parent_dir.child("static").absolute()),
) )
app.json_encoder = CustomJSONEncoder app.json_encoder = CustomJSONEncoder
make_redis(app, config) make_redis(app, config)