9 lines
214 B
Python
9 lines
214 B
Python
from configparser import ConfigParser
|
|
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))
|