Skip to content

Commit

Permalink
improve build script
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 12, 2024
1 parent fb94801 commit 5b859db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion awtk_config_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
else:
import pickle

OS_NAME = platform.system()

import subprocess

def is_raspberrypi():
if OS_NAME == "Windows":
return False
result = str(subprocess.check_output(["uname", "-a"]))
return result.find('Linux raspberrypi') >= 0

Expand All @@ -22,7 +26,6 @@ def is_raspberrypi():
#######################################################

TOOLS_PREFIX = ''
OS_NAME = platform.system()
MACH = platform.machine()
ARCH = platform.architecture()
is32bit = (ARCH[0] == '32bit')
Expand Down

0 comments on commit 5b859db

Please sign in to comment.