We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38b985 commit 40ae2a6Copy full SHA for 40ae2a6
tools/getarch.py
@@ -0,0 +1,10 @@
1
+from __future__ import print_function
2
+from utils import GuessArchitecture
3
+arch = GuessArchitecture()
4
+
5
+# assume 64 bit unless set specifically
6
+print(GuessArchitecture() \
7
+ .replace('ia32', 'x64') \
8
+ .replace('ppc', 'ppc64') \
9
+ .replace('arm', 'arm64') \
10
+ .replace('s390', 's390x'))
tools/getendian.py
@@ -0,0 +1,4 @@
+import sys
+# "little" or "big"
+print(sys.byteorder)
tools/getmachine.py
@@ -0,0 +1,3 @@
+import platform
+print(platform.machine())
tools/getnodeversion.py
@@ -1,3 +1,4 @@
import os
import re
0 commit comments