2025-02-20 09:33:58 +00:00
|
|
|
import os
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2025-03-04 14:47:03 +00:00
|
|
|
path = os.getcwd()+'/src/resources'
|
2025-02-20 09:33:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# 塔罗牌图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
image_local_qq_image_path = path+'/image/qq_image'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(image_local_qq_image_path, exist_ok=True)
|
|
|
|
|
# 个人图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
image_local_path= path+"/image/MaoYuNa"
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(image_local_path, exist_ok=True)
|
|
|
|
|
# 塔罗牌图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
tarots_img_path = path+'/image/tarot/TarotImages/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(tarots_img_path, exist_ok=True)
|
|
|
|
|
# 摸摸头图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
rua_png = path+'/image/rua/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(rua_png, exist_ok=True)
|
|
|
|
|
# 喜报、悲报图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
good_bad = path+'/image/good_bad_news/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(good_bad, exist_ok=True)
|
|
|
|
|
#谁说 生成图片路径
|
2025-03-04 14:47:03 +00:00
|
|
|
who_say_path = path+'/image/who_say/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(who_say_path, exist_ok=True)
|
|
|
|
|
#yuc_wiki 动漫wiki
|
2025-03-04 14:47:03 +00:00
|
|
|
yuc_wiki_path = path + '/image/yuc_wiki/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(yuc_wiki_path, exist_ok=True)
|
|
|
|
|
# 字体路径
|
2025-03-04 14:47:03 +00:00
|
|
|
font_path = path + '/font/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(font_path, exist_ok=True)
|
|
|
|
|
# 临时数据路径
|
2025-03-04 14:47:03 +00:00
|
|
|
temp_path = path + '/temp/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(temp_path, exist_ok=True)
|
2025-04-02 08:36:17 +00:00
|
|
|
# JM下载位置
|
2025-03-31 09:59:30 +00:00
|
|
|
jm_path = path + '/image/jm/'
|
|
|
|
|
os.makedirs(jm_path, exist_ok=True)
|
2025-02-20 09:33:58 +00:00
|
|
|
# 日志路径
|
2025-03-04 14:47:03 +00:00
|
|
|
log_path = path+'/log/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(log_path, exist_ok=True)
|
|
|
|
|
# 视频路径
|
2025-03-04 14:47:03 +00:00
|
|
|
video_path = path+'/video/'
|
2025-02-20 09:33:58 +00:00
|
|
|
os.makedirs(video_path, exist_ok=True)
|
|
|
|
|
|
2025-04-02 08:36:17 +00:00
|
|
|
#jm配置文件路径
|
|
|
|
|
jm_config_path = os.getcwd()+'/src/configs/jm_config.yml'
|
2025-02-20 09:33:58 +00:00
|
|
|
|
|
|
|
|
# # 语音路径
|
|
|
|
|
# RECORD_PATH = Path() / "src" / "resources" / "record"
|
|
|
|
|
# # 文本路径
|
|
|
|
|
# TEXT_PATH = Path() / "src" / "resources" / "text"
|
|
|
|
|
# # 数据路径
|
|
|
|
|
# DATA_PATH = Path() / "src" / "data"
|
|
|
|
|
# # 网页模板路径
|
|
|
|
|
# TEMPLATE_PATH = Path() / "src" / "resources" / "template"
|
|
|
|
|
# # 视频路径
|
|
|
|
|
# VIDEO_PATH = Path() / "src" / "resources" / "videos"
|