9 lines
235 B
Python
9 lines
235 B
Python
from configobj import ConfigObj
|
|
import os
|
|
|
|
def load_config():
|
|
config_path = os.path.join(os.path.dirname(__file__), '..', 'config.ini')
|
|
|
|
# Load config while preserving sections as nested dicts
|
|
return ConfigObj(config_path)
|