mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-03-19 07:39:45 +08:00
Update app.py
This commit is contained in:
@@ -2,7 +2,7 @@ from flask import Flask, render_template, request, send_from_directory
|
||||
import os
|
||||
import re
|
||||
|
||||
app = Flask(__name__, template_folder='webui/templates', static_url_path='', static_folder='webui/static')
|
||||
app = Flask(__name__, template_folder='webui', static_url_path='', static_folder='webui')
|
||||
FONT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'pic') # 字体文件夹路径
|
||||
|
||||
def list_font_files(font_dir):
|
||||
@@ -92,4 +92,4 @@ if not os.path.exists(FONT_DIR):
|
||||
|
||||
if __name__ == '__main__':
|
||||
# 绑定到0.0.0.0,允许远程访问
|
||||
app.run(host='0.0.0.0', port=80, debug=False)
|
||||
app.run(host='0.0.0.0', port=80, debug=False)
|
||||
|
||||
Reference in New Issue
Block a user