| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d38b985 commit 40ae2a6
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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')) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + from __future__ import print_function | ||
| 2 | + import sys | ||
| 3 | + # "little" or "big" | ||
| 4 | + print(sys.byteorder) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + from __future__ import print_function | ||
| 2 | + import platform | ||
| 3 | + print(platform.machine()) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + from __future__ import print_function | ||
| 1 | 2 | import os | |
| 2 | 3 | import re | |
| 3 | 4 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments