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

Function captureCommand

Mac/BuildScript/build-installer.py:535–543  ·  view source on GitHub ↗
(commandline)

Source from the content-addressed store, hash-verified

533 sys.stdout.write(data); sys.stdout.flush()
534
535def captureCommand(commandline):
536 fd = os.popen(commandline, 'r')
537 data = fd.read()
538 xit = fd.close()
539 if xit is not None:
540 sys.stdout.write(data)
541 raise RuntimeError("command failed: %s"%(commandline,))
542
543 return data
544
545def getTclTkVersion(configfile, versionline):
546 """

Callers 2

buildPythonFunction · 0.85
installSizeFunction · 0.85

Calls 3

readMethod · 0.45
closeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…