Cherry-pick 7ba35c4 from master (support pathlib.Path for static_folder)
This commit is contained in:
parent
88c9c68e17
commit
b724832872
3 changed files with 22 additions and 1 deletions
|
|
@ -1001,7 +1001,7 @@ class _PackageBoundObject(object):
|
|||
@static_folder.setter
|
||||
def static_folder(self, value):
|
||||
if value is not None:
|
||||
value = value.rstrip("/\\")
|
||||
value = os.fspath(value).rstrip(r"\/")
|
||||
self._static_folder = value
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue