diff --git a/tools/utils_maintenance/make_license.py b/tools/utils_maintenance/make_license.py index a3edb0e230e..fb2260ed591 100644 --- a/tools/utils_maintenance/make_license.py +++ b/tools/utils_maintenance/make_license.py @@ -8,8 +8,8 @@ from pathlib import Path import os -CURRENT_DIR = Path(__file__).parent -ROOT = CURRENT_DIR.resolve().parent.parent +CURRENT_DIR = Path(os.path.dirname(__file__)) +ROOT = Path(os.path.abspath(CURRENT_DIR / "../../")) @dataclass