MCPcopy Create free account
hub / github.com/audacity/audacity / get_response

Function get_response

scripts/piped-work/recording_test.py:97–106  ·  view source on GitHub ↗

Get response from Audacity.

()

Source from the content-addressed store, hash-verified

95
96
97def get_response():
98 """Get response from Audacity."""
99 line = FROMPIPE.readline()
100 result = ""
101 while True:
102 result += line
103 line = FROMPIPE.readline()
104 # print(f"Line read: [{line}]")
105 if line == '\n':
106 return result
107
108
109def do_command(command):

Callers 1

do_commandFunction · 0.70

Calls 1

readlineMethod · 0.80

Tested by

no test coverage detected