Skip to content

Commit 374b06d

Browse files
committed
Fix missing import cause build failure
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent fce7c0e commit 374b06d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builder/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import sys
77
from platform import system
8+
from platformio.util import get_systype
89
from os import makedirs
910
from os.path import basename, isdir, join
1011

@@ -36,7 +37,7 @@
3637
)
3738

3839
# Setup tools based on system type
39-
if "windows" in util.get_systype():
40+
if "windows" in get_systype():
4041
env.Replace(
4142
SIWIFLASHER=join(platform.get_package_dir("tool-siwiflasher") or "", "siwiflasher"),
4243
REFLASH_FLAGS=[
@@ -112,7 +113,7 @@
112113
upload_source = target_firm
113114
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]
114115

115-
if "windows" not in util.get_systype() and env.subst("$UPLOAD_PORT") == "":
116+
if "windows" not in get_systype() and env.subst("$UPLOAD_PORT") == "":
116117
env.Append(
117118
UPLOADERFLAGS=[
118119
"-u"

0 commit comments

Comments
 (0)