Skip to content

Commit 55b55ce

Browse files
Update consts_getter.py
Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent ccfe160 commit 55b55ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/build/consts_getter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import os
1+
from pathlib import Path
22

3-
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
4-
INTERNAL = os.path.join(ROOT, 'Include', 'internal')
3+
ROOT = Path(__file__).resolve().parents[2]
4+
INTERNAL = ROOT / "Include" / "internal"
55

66
def get_nsmallnegints_and_nsmallposints() -> tuple[int, int]:
77
nsmallposints = None

0 commit comments

Comments
 (0)