Don't unnecessarily encode os.path.join()
This commit is contained in:
parent
4b730e0a20
commit
0a6ecbf2c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue