mirror of
https://gitee.com/TheAlgorithms/LeetCodeAnimation.git
synced 2024-12-06 15:19:44 +08:00
13 lines
286 B
Python
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'
|