This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-02-11 16:26:11 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -- coding:utf-8 --
|
|
|
|
|
# @Author: markushammered@gmail.com
|
|
|
|
|
# @Development Tool: PyCharm
|
2022-02-12 11:28:21 +08:00
|
|
|
# @Create Time: 2022/2/12
|
2022-02-13 18:50:58 +08:00
|
|
|
# @File Name: __init__.py
|
2022-02-11 16:26:11 +08:00
|
|
|
|
2022-02-12 11:28:21 +08:00
|
|
|
|
2022-03-01 22:33:44 +08:00
|
|
|
import os
|
|
|
|
|
from bin.utils.logger import logger
|
|
|
|
|
from bin.utils.settings import Settings
|
|
|
|
|
|
|
|
|
|
if __name__ != '__main__':
|
|
|
|
|
if Settings().type == 'MySQL' and not os.path.exists('./bin/db/origin.sql'):
|
|
|
|
|
logger.info('当前使用的数据库为MySQL请前往 https://themedatabase.vercel.app/source/sql 下载sql文件')
|
|
|
|
|
logger.info('并使用 source 命令来导入MySQL数据库')
|
|
|
|
|
logger.info('忽略此消息请在./bin/db内创建一个名为origin.sql的文件')
|