Cherry-pick 7ba35c4 from master (support pathlib.Path for static_folder)

This commit is contained in:
Joshua Bronson 2020-04-20 13:26:33 -04:00
parent 44bf9f83be
commit 35b8f096a7
3 changed files with 22 additions and 1 deletions

View file

@ -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