Provide alternative function to detect cpu arch

This commit is contained in:
Alan Marshall 2023-09-19 12:03:54 +01:00
parent f6bfd46d04
commit 094371b749
Signed by: alangm
GPG Key ID: 4DF85D1B967F51A6
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ from six.moves.urllib.request import urlopen
# directory.
SCRIPTDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
CPUARCH = platform.processor()
if CPUARCH == '' : CPUARCH = platform.machine()
logger = logging.getLogger('createhdds')
def handle_size(size):