MCPcopy Index your code
hub / github.com/python/cpython / getTclTkVersion

Function getTclTkVersion

Mac/BuildScript/build-installer.py:545–560  ·  view source on GitHub ↗

search Tcl or Tk configuration file for version line

(configfile, versionline)

Source from the content-addressed store, hash-verified

543 return data
544
545def 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
562def checkEnvironment():
563 """

Callers

nothing calls this directly

Calls 4

fatalFunction · 0.70
openFunction · 0.50
startswithMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…