mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 15:19:44 +02:00
Bug 2665 - Docimage script now runs ahead and stalls.
There are now extra blank lines in the results that need to be dealt with. Script updated to do so. This bug 2665 is now fixed. I think there is a small issue with the label command not using the selection that still needs to be addressed too, but it is minor compared to bug 2665 and can wait.
This commit is contained in:
parent
b99a2e464f
commit
d9eb723e13
@ -49,15 +49,18 @@ def sendCommand( command ) :
|
||||
tofile.flush()
|
||||
|
||||
def getResponse() :
|
||||
"""Return the command response."""
|
||||
global fromfile
|
||||
result = ''
|
||||
line = ''
|
||||
while line != '\n' :
|
||||
while True:
|
||||
result += line
|
||||
line = fromfile.readline()
|
||||
#print(" I read line:["+line+"]")
|
||||
if line == '\n' and len(result) > 0:
|
||||
break
|
||||
return result
|
||||
|
||||
|
||||
def doCommand( command ) :
|
||||
sendCommand( command )
|
||||
response = getResponse()
|
||||
|
Loading…
x
Reference in New Issue
Block a user