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/project/common/data.py

9 lines
247 B
Python
Raw Normal View History

import os.path
import yaml
def generate_config(base_dir):
default = yaml.load(open(os.path.join(base_dir, 'data/context.yml'))) or {}
page = yaml.load(open(os.path.join(base_dir, 'data/page_context.yml'))) or {}
return default, page