You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
454 B
Python
14 lines
454 B
Python
def init_services(app) -> None:
|
|
"""初始化Services"""
|
|
if not app.config.get("INIT_SYSTEM_SERVICES_ON_STARTUP", False):
|
|
return
|
|
|
|
# 初始化文件系统配置
|
|
from iti.applications.service.sys.sys_file_config import init_app as init_file_config
|
|
init_file_config(app)
|
|
|
|
# 初始化文件目录
|
|
from iti.applications.service.sys.sys_file_directory import init_app as init_file_directory
|
|
init_file_directory(app)
|
|
|