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:
parent
b58c3d1222
commit
dab1efd564
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user