manim/tests/helpers/path_utils.py
GameDungeon daf23c9d10
Upgraded typehints (#2429)
* Future Annotations

* Delete template_twitter_post.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Apply suggestions from code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fixed broken RTD

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-20 12:26:21 +08:00

13 lines
286 B
Python

from __future__ import annotations
from pathlib import Path
def get_project_root() -> Path:
return Path(__file__).parent.parent.parent
def get_svg_resource(filename):
return str(
get_project_root() / "tests/test_graphical_units/img_svg_resources" / filename,
)