import os Import("env") # include toolchain paths env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True) print(">> ", env) # override compilation DB path # path = os.path.join("$BUILD_DIR", "compile_commands.json") # print(">> ", path) # env.Replace(COMPILATIONDB_PATH=path)