/
githubmirror
/
LeetCodeAnimation
Обзор
Документация
Войти
/
githubmirror
/
LeetCodeAnimation
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tools/anima/base.py
16 строк
454 B
吴师兄
docs: streamline repository root layout
10 июн 2026, 11:06
10 июн 2026, 11:06
e3001f4
Код
Авторство
О чём код?
import os from pathlib import Path def get_project_path() -> Path: script_path = os.path.realpath(__file__) repo_path = Path(script_path).parents[2] problems_path = repo_path / 'problems' problems_path.mkdir(exist_ok=True) return problems_path def get_md_template_path() -> Path: script_path = os.path.realpath(__file__) repo_path = Path(script_path).parents[2] return repo_path / 'tools' / 'template' / 'template.md'