mirror of
https://github.com/Kakune55/ComiPy.git
synced 2025-05-06 18:29:26 +08:00
9 lines
217 B
Python
9 lines
217 B
Python
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 |