From dab1efd56498bed97e328b4ea5c97e6ce7e9ceae Mon Sep 17 00:00:00 2001 From: graham-dds Date: Thu, 19 Sep 2019 10:29:54 -0400 Subject: [PATCH] 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 --- atst/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atst/app.py b/atst/app.py index 488b57e9..6a23abfe 100644 --- a/atst/app.py +++ b/atst/app.py @@ -49,8 +49,8 @@ def make_app(config): app = Flask( __name__, - template_folder=parent_dir.child("templates").absolute(), - static_folder=parent_dir.child("static").absolute(), + template_folder=str(object=parent_dir.child("templates").absolute()), + static_folder=str(object=parent_dir.child("static").absolute()), ) app.json_encoder = CustomJSONEncoder make_redis(app, config)