LeetCodeAnimation/anima/base.py
2020-04-17 23:26:19 +08:00

13 lines
286 B
Python

import os
from pathlib import Path
def get_project_path() -> Path:
script_path = os.path.realpath(__file__)
project_path = Path(script_path).parent.parent
return project_path
def get_md_template_path() -> Path:
return get_project_path() / 'template' / 'template.md'