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.
|
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')
|