mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Fix sys env for Windows
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
import atexit
|
import atexit
|
||||||
import re
|
import re
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from os import remove
|
from os import environ, remove
|
||||||
from os.path import basename, join
|
from os.path import basename, join
|
||||||
|
|
||||||
from platformio.util import exec_command
|
from platformio.util import exec_command
|
||||||
@ -161,7 +161,9 @@ def DumpIDEData(env):
|
|||||||
|
|
||||||
def getCompilerType(env):
|
def getCompilerType(env):
|
||||||
try:
|
try:
|
||||||
result = exec_command([env.subst("$CC"), "-v"], env=env['ENV'])
|
sysenv = environ.copy()
|
||||||
|
sysenv['PATH'] = str(env['ENV']['PATH'])
|
||||||
|
result = exec_command([env.subst("$CC"), "-v"], env=sysenv)
|
||||||
except OSError:
|
except OSError:
|
||||||
return None
|
return None
|
||||||
if result['returncode'] != 0:
|
if result['returncode'] != 0:
|
||||||
|
Reference in New Issue
Block a user