mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 00:33:27 +00:00
Fixed issues while trying to serve assets. #1822
This commit is contained in:
parent
7fa2a607be
commit
89fa25cddf
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ def web_assets(filename):
|
||||||
mimetypes.add_type('image/png', '.png')
|
mimetypes.add_type('image/png', '.png')
|
||||||
mimetypes.add_type('image/x-icon', '.ico')
|
mimetypes.add_type('image/x-icon', '.ico')
|
||||||
|
|
||||||
path = os.path.join(os.path.dirname(__file__), '..', 'frontend', 'build', 'assets')
|
# send_from_directory needs an absolute path then we'll use realpath() here
|
||||||
|
path = os.path.realpath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'frontend', 'build', 'assets'))
|
||||||
return send_from_directory(path, filename)
|
return send_from_directory(path, filename)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue