mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
really clean build directory
This commit is contained in:
parent
c65d78f568
commit
bc482ebb5f
1 changed files with 4 additions and 8 deletions
|
@ -354,14 +354,10 @@ def write_cpp(code_s):
|
||||||
def clean_build():
|
def clean_build():
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
pioenvs = CORE.relative_pioenvs_path()
|
build_dir = CORE.relative_build_path("")
|
||||||
if os.path.isdir(pioenvs):
|
if os.path.isdir(build_dir):
|
||||||
_LOGGER.info("Deleting %s", pioenvs)
|
_LOGGER.info("Deleting %s", build_dir)
|
||||||
shutil.rmtree(pioenvs)
|
shutil.rmtree(build_dir)
|
||||||
piolibdeps = CORE.relative_piolibdeps_path()
|
|
||||||
if os.path.isdir(piolibdeps):
|
|
||||||
_LOGGER.info("Deleting %s", piolibdeps)
|
|
||||||
shutil.rmtree(piolibdeps)
|
|
||||||
|
|
||||||
|
|
||||||
GITIGNORE_CONTENT = """# Gitignore settings for ESPHome
|
GITIGNORE_CONTENT = """# Gitignore settings for ESPHome
|
||||||
|
|
Loading…
Reference in a new issue