Store the .json configuration for the current binary file. Args: json_config (dict): json configuration content bin_path (str, Optional): path to the compiled binary file (None by default)
(json_config, bin_path=None)
| 244 | return config_dict |
| 245 | |
| 246 | def storeKnowledge(json_config, bin_path=None): |
| 247 | """Store the .json configuration for the current binary file. |
| 248 | |
| 249 | Args: |
| 250 | json_config (dict): json configuration content |
| 251 | bin_path (str, Optional): path to the compiled binary file (None by default) |
| 252 | """ |
| 253 | json_path = accumulatedKnowledgePath(bin_path) |
| 254 | fd = open(json_path, "w") |
| 255 | json.dump(json_config, fd) |
| 256 | fd.close() |
| 257 | |
| 258 | ######################### |
| 259 | ## Adaptive heuristics ## |
no test coverage detected