mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-26 07:53:42 +02:00
Fix pipe_test for Python3 on Linux
The script still works with Python 2 on Linux, but it should be tested (with Python 3) on Windows and Mac.
This commit is contained in:
@@ -34,7 +34,7 @@ if not os.path.exists( fromname ) :
|
|||||||
|
|
||||||
print( "-- Both pipes exist. Good." )
|
print( "-- Both pipes exist. Good." )
|
||||||
|
|
||||||
tofile = open( toname, 'wt+' )
|
tofile = open( toname, 'w' )
|
||||||
print( "-- File to write to has been opened" )
|
print( "-- File to write to has been opened" )
|
||||||
fromfile = open( fromname, 'rt')
|
fromfile = open( fromname, 'rt')
|
||||||
print( "-- File to read from has now been opened too\r\n" )
|
print( "-- File to read from has now been opened too\r\n" )
|
||||||
@@ -51,7 +51,7 @@ def getResponse() :
|
|||||||
while line != '\n' :
|
while line != '\n' :
|
||||||
result += line
|
result += line
|
||||||
line = fromfile.readline()
|
line = fromfile.readline()
|
||||||
#print(" I read line:["+line+"]")
|
#print(" I read line:["+line+"]")
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def doCommand( command ) :
|
def doCommand( command ) :
|
||||||
|
|||||||
Reference in New Issue
Block a user