1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 07:28:21 +08:00

Opt: Change directories of reload listening

This commit is contained in:
18870
2022-01-13 17:27:05 +08:00
parent 8cf38a696b
commit 762f1971c4
4 changed files with 9 additions and 9 deletions

4
gui.py
View File

@@ -97,9 +97,9 @@ if __name__ == '__main__':
logger.attr('Port', port)
try:
os.remove('./reloadflag')
os.remove('./config/reloadflag')
except:
pass
uvicorn.run('module.webui.app:app', host=host, port=port, factory=True,
uvicorn.run('module.webui.app:app', host=host, port=port, factory=True, reload_dirs=[os.path.join(os.getcwd(), './config/')],
reload=True, reload_includes=['reloadflag'], reload_excludes=['*.py'])