Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/config/__init__.py

9 lines
221 B
Python
Raw Normal View History

2020-08-07 17:29:44 +00:00
from configparser import ConfigParser
import sys
from os.path import abspath
def config(q):
cp = ConfigParser()
cp.read(abspath("./config/config.cfg"))
section = cp.sections()[0]
return(cp.get(section,q))