1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 08:43:01 +00:00

no log: make it cleaner

This commit is contained in:
morpheus65535 2023-05-21 12:08:30 -04:00
parent 80414c08ab
commit 205bceb38d

View file

@ -24,15 +24,14 @@ ui_bp = Blueprint('ui', __name__,
'build', 'assets'), 'build', 'assets'),
static_url_path='/assets') static_url_path='/assets')
if os.path.exists(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),'frontend', 'build', if os.path.exists(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'build',
'images')): 'images')):
static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'build', static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'build',
'images') 'images')
else: else:
static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'public', static_directory = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'frontend', 'public',
'images') 'images')
static_bp = Blueprint('images', __name__, static_bp = Blueprint('images', __name__, static_folder=static_directory, static_url_path='/images')
static_folder=static_directory, static_url_path='/images')
ui_bp.register_blueprint(static_bp) ui_bp.register_blueprint(static_bp)