extra_scripts.py
1 from os.path import join 2 import fileinput 3 import re 4 5 Import("env") 6 7 for line in fileinput.input( 8 ( 9 lambda: join( 10 env.subst("$PROJECT_LIBDEPS_DIR"), 11 env["PIOENV"], 12 "Sqlite3Esp32", 13 "src", 14 "config_ext.h", 15 ) 16 )(), 17 inplace=True, 18 ): 19 print( 20 re.sub(r"^\s*#define\s+YYSTACKDEPTH\s+\d+", "#define YYSTACKDEPTH 30", line), 21 end="", 22 )