Cleanup: make_license: use Path more deliberately

Changes suggested by Sybren Stüvel.

The original suggestion was even to use resolve() instead of abspath,
but we don't even need that here.
This commit is contained in:
Dalai Felinto
2024-10-21 11:40:23 +02:00
parent f60f2b769b
commit 8cff5ecb4d

View File

@@ -19,7 +19,7 @@ from typing import (
# -----------------------------------------------------------------------------
# Path Constants
ROOT_DIR = Path(os.path.abspath(Path(os.path.dirname(__file__)) / "../../"))
ROOT_DIR = Path(__file__).parent.parent.parent
DIRPATH_LICENSES: Path = ROOT_DIR / "release/license/"
DIRPATH_EXTERN_LIBRARIES: Path = ROOT_DIR / "extern"