File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 28
28
import os
29
29
import sys
30
30
import shutil
31
- from os .path import join
31
+ from os .path import join , exists
32
32
33
33
from SCons .Script import COMMAND_LINE_TARGETS , DefaultEnvironment , SConscript
34
34
from platformio import fs
@@ -240,6 +240,11 @@ def call_compile_libs():
240
240
SConscript ("espidf.py" )
241
241
242
242
if check_reinstall_frwrk () == True :
243
+ envs = [section .replace ("env:" , "" ) for section in config .sections () if section .startswith ("env:" )]
244
+ for env_name in envs :
245
+ file_path = join (env .subst ("$PROJECT_DIR" ), f"sdkconfig.{ env_name } " )
246
+ if exists (file_path ):
247
+ os .remove (file_path )
243
248
print ("*** Reinstall Arduino framework ***" )
244
249
shutil .rmtree (platform .get_package_dir ("framework-arduinoespressif32" ))
245
250
shutil .rmtree (platform .get_package_dir ("framework-arduinoespressif32-libs" ))
You can’t perform that action at this time.
0 commit comments