-
Notifications
You must be signed in to change notification settings - Fork 4
/
_user_config.py
33 lines (23 loc) · 1.04 KB
/
_user_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 如果只是想自己制作电子书而不是开发此程序的话,需复制这个文件为 user_config.py,再修改复制后的文件。
import os.path
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
CACHE_DIR = os.path.join(PROJECT_ROOT, "cache")
os.makedirs(CACHE_DIR, exist_ok=True)
# 莊春江工作站目录
INDEX_DIR = "/mnt/data/Buddhism/abo_2024.02.07/agama.buddhason.org/"
# INDEX_DIR = r"D:\abo_2022.03.34\agama.buddhason.org\"
# 经文缓存目录
CACHE_DIR = os.path.join(PROJECT_ROOT, "cache")
# 字体文件目录
# FONTS_DIR = os.path.join(PROJECT_ROOT, "fonts")
FONTS_DIR = "/mnt/data/software/fonts"
# FONTS_DIR = r"D:\fonts"
# ConTeXt 目录
CONTEXT_BIN_PATH = "~/context-lmtx/tex/texmf-linux-64/bin"
# CONTEXT_BIN_PATH = r"D:\context-win64\tex\texmf-win64\bin"
# EPUBCheck 路径
EPUBCHECK = "/mnt/data/software/epubcheck-4.2.6/epubcheck.jar"
# EPUBCHECK = r"D:\epubcheck-4.2.6\epubcheck.jar"
# 电子书存放目录
BOOKS_DIR = os.path.join(PROJECT_ROOT, "_books")
LOG_PATH = os.path.join(PROJECT_ROOT, "abo_log.txt")