11 lines
280 B
Python
11 lines
280 B
Python
|
import configparser
|
||
|
import os
|
||
|
from pathlib import Path
|
||
|
|
||
|
def load_config():
|
||
|
config = configparser.ConfigParser()
|
||
|
config.read([
|
||
|
Path(__file__).parent.parent / 'config/config.ini',
|
||
|
# Path(__file__).parent.parent / 'config/secrets.enc'
|
||
|
])
|
||
|
return config
|