import os Import("env") path = os.path.join("$BUILD_DIR", "compile_commands.json") env.Replace(COMPILATIONDB_PATH=path)