From ef6e372732ed36161f9bdd28cdbbfd0fdcb56eac Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 30 Sep 2024 23:26:40 +0200 Subject: [PATCH] let execute code owners in venv without installing esphome --- script/build_codeowners.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/build_codeowners.py b/script/build_codeowners.py index db34ad7702..8cb19de079 100755 --- a/script/build_codeowners.py +++ b/script/build_codeowners.py @@ -3,6 +3,9 @@ import argparse from collections import defaultdict from pathlib import Path import sys +import os + +sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from esphome.config import get_component, get_platform from esphome.const import KEY_CORE, KEY_TARGET_FRAMEWORK