mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
[script] Use local import for zephyr (#8822)
This commit is contained in:
parent
b469a504e4
commit
5c92367ca2
@ -5,7 +5,6 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import colorama
|
import colorama
|
||||||
import helpers_zephyr
|
|
||||||
|
|
||||||
root_path = os.path.abspath(os.path.normpath(os.path.join(__file__, "..", "..")))
|
root_path = os.path.abspath(os.path.normpath(os.path.join(__file__, "..", "..")))
|
||||||
basepath = os.path.join(root_path, "esphome")
|
basepath = os.path.join(root_path, "esphome")
|
||||||
@ -149,7 +148,9 @@ def load_idedata(environment):
|
|||||||
Path(temp_folder).mkdir(exist_ok=True)
|
Path(temp_folder).mkdir(exist_ok=True)
|
||||||
|
|
||||||
if "nrf" in environment:
|
if "nrf" in environment:
|
||||||
data = helpers_zephyr.load_idedata(environment, temp_folder, platformio_ini)
|
from helpers_zephyr import load_idedata as zephyr_load_idedata
|
||||||
|
|
||||||
|
data = zephyr_load_idedata(environment, temp_folder, platformio_ini)
|
||||||
else:
|
else:
|
||||||
stdout = subprocess.check_output(
|
stdout = subprocess.check_output(
|
||||||
["pio", "run", "-t", "idedata", "-e", environment]
|
["pio", "run", "-t", "idedata", "-e", environment]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user