1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/config/__init__.py

14 lines
238 B
Python

import yaml
import os.path
settings_dir = os.path.dirname(__file__)
def get_config(filename):
with open(os.path.join(settings_dir, '{}.yml'.format(filename))) as f:
return yaml.safe_load(f)
social = get_config('social')