Commit 262fe96ca77ada5fcd0cda2ba03248be93b31ada
1 parent
9b550055
Exists in
master
Use path relativity.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
flaskr/content.py
1 | from collections import namedtuple | 1 | from collections import namedtuple |
2 | from yaml import safe_load as yaml_safe_load | 2 | from yaml import safe_load as yaml_safe_load |
3 | 3 | ||
4 | +from core import get_path | ||
4 | 5 | ||
5 | -with open('content.yml', 'r') as content_file: | 6 | +with open(get_path('content.yml'), 'r') as content_file: |
6 | content_dict = yaml_safe_load(content_file.read()) | 7 | content_dict = yaml_safe_load(content_file.read()) |
7 | 8 | ||
8 | 9 |