(header_file)
| 455 | |
| 456 | |
| 457 | def get_version_from_file(header_file): |
| 458 | with open(header_file, "rU") as fp: |
| 459 | contents = fp.read() # no need to decode() as "rU" specified |
| 460 | ret = dict() |
| 461 | matches = re.findall(r'^#define (\w+) "?([^\s"]+)"?', contents, |
| 462 | re.MULTILINE) |
| 463 | for match in matches: |
| 464 | ret[match[0]] = match[1] |
| 465 | return ret |
| 466 | |
| 467 | |
| 468 | def get_msvs_for_python(vs_prefix=False): |
no outgoing calls
no test coverage detected