Skip to content

Commit 1271d88

Browse files
authored
Use pio function IS_WINDOWS
1 parent 02e3790 commit 1271d88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import logging
2424
from typing import Optional, Dict, List, Any
2525

26+
from platformio.compat import IS_WINDOWS
2627
from platformio.public import PlatformBase, to_unix_path
2728
from platformio.proc import get_pythonexe_path
2829
from platformio.project.config import ProjectConfig
@@ -71,10 +72,8 @@
7172
]
7273

7374
# System-specific configuration
74-
IS_WINDOWS = sys.platform.startswith("win")
7575
# Set Platformio env var to use windows_amd64 for all windows architectures
7676
# only windows_amd64 native espressif toolchains are available
77-
# needs platformio/pioarduino core >= 6.1.17
7877
if IS_WINDOWS:
7978
os.environ["PLATFORMIO_SYSTEM_TYPE"] = "windows_amd64"
8079

0 commit comments

Comments
 (0)