36 lines
842 B
Python
36 lines
842 B
Python
#!/usr/bin/env python3
|
|
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
import os.path as osp
|
|
|
|
|
|
def root_dir() -> str:
|
|
'''Return the path to the root of the repository.'''
|
|
return osp.normpath(osp.join(osp.dirname(__file__), '..', '..'))
|
|
|
|
|
|
def assets_path() -> str:
|
|
'''Return the path to the assets directory.'''
|
|
path = osp.join(root_dir(), 'assets')
|
|
return path
|
|
|
|
|
|
def content_path() -> str:
|
|
'''Return the path to the content directory.'''
|
|
path = osp.join(root_dir(), 'content')
|
|
return path
|
|
|
|
|
|
def blog_path() -> str:
|
|
'''Return the path to the blog content directory.'''
|
|
return osp.join(content_path(), 'blog')
|
|
|
|
|
|
def photos_path() -> str:
|
|
'''Return the path to the photos content directory.'''
|
|
return osp.join(content_path(), 'photos')
|
|
|
|
|
|
content_dir = content_path
|
|
blog_dir = blog_path
|
|
photos_dir = photos_path
|