Don't unnecessarily encode os.path.join()

This commit is contained in:
Aditya Hase 2017-08-11 18:09:32 +05:30
parent 4b730e0a20
commit 0a6ecbf2c5

View file

@ -213,11 +213,11 @@ def serve(port=8000, profile=False, site=None, sites_path='.'):
if not os.environ.get('NO_STATICS'):
application = SharedDataMiddleware(application, {
b'/assets': os.path.join(sites_path, 'assets').encode("utf-8"),
b'/assets': os.path.join(sites_path, 'assets'),
})
application = StaticDataMiddleware(application, {
b'/files': os.path.abspath(sites_path).encode("utf-8")
b'/files': os.path.abspath(sites_path)
})
application.debug = True