search Tcl or Tk configuration file for version line
(configfile, versionline)
| 543 | return data |
| 544 | |
| 545 | def getTclTkVersion(configfile, versionline): |
| 546 | """ |
| 547 | search Tcl or Tk configuration file for version line |
| 548 | """ |
| 549 | try: |
| 550 | f = open(configfile, "r") |
| 551 | except OSError: |
| 552 | fatal("Framework configuration file not found: %s" % configfile) |
| 553 | |
| 554 | for l in f: |
| 555 | if l.startswith(versionline): |
| 556 | f.close() |
| 557 | return l |
| 558 | |
| 559 | fatal("Version variable %s not found in framework configuration file: %s" |
| 560 | % (versionline, configfile)) |
| 561 | |
| 562 | def checkEnvironment(): |
| 563 | """ |
nothing calls this directly
no test coverage detected
searching dependent graphs…