mirror of
https://github.com/Kakune55/ComiPy.git
synced 2025-09-16 04:09:41 +08:00
更改配置文件的存取方式
This commit is contained in:
9
app_conf.py
Normal file
9
app_conf.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import configparser , os
|
||||
|
||||
def conf():
|
||||
conf = configparser.ConfigParser()
|
||||
if os.path.exists('./conf/app.ini'):
|
||||
conf.read('./conf/app.ini')
|
||||
else:
|
||||
conf.read('./conf/app_d.ini')
|
||||
return conf
|
Reference in New Issue
Block a user