We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccfe160 commit 55b55ceCopy full SHA for 55b55ce
Tools/build/consts_getter.py
@@ -1,7 +1,7 @@
1
-import os
+from pathlib import Path
2
3
-ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
4
-INTERNAL = os.path.join(ROOT, 'Include', 'internal')
+ROOT = Path(__file__).resolve().parents[2]
+INTERNAL = ROOT / "Include" / "internal"
5
6
def get_nsmallnegints_and_nsmallposints() -> tuple[int, int]:
7
nsmallposints = None
0 commit comments