11 lines
293 B
Python
11 lines
293 B
Python
# common.py
|
|
import os, yaml
|
|
|
|
def load_config():
|
|
"""
|
|
conf/config.yaml 파일을 UTF-8로 읽어 파이썬 dict로 반환
|
|
"""
|
|
path = os.path.join(os.path.dirname(__file__), '..', 'conf', 'config.yaml')
|
|
with open(path, encoding='utf-8') as f:
|
|
return yaml.safe_load(f)
|