Skip to content

Commit 18ca8e6

Browse files
committed
update with full path for osx
1 parent 6ec2965 commit 18ca8e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

AudioToAscii.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def error_man(titleEM, messEM):
3535
def kill_pid_player(tfKPP):
3636
pid_file_kpp = open(tfKPP, "r")
3737
pid = pid_file_kpp.readline()
38-
os.system("kill " + pid)
38+
os.system("/bin/kill " + pid)
3939
pid_file_kpp.close()
4040

4141
def audioToAscii(audioFileATA, asciiFileATA, dimATA, fpsATA, durationATA, xHeightATA, yHeightATA):
@@ -156,7 +156,10 @@ def paramHasChanged(thisParam, thisNode, thisGroup, app, userEdited):
156156
# calculate ffplay duration loop
157157
duration_loop = thisNode.duraTion.get() / thisNode.framesPerSec.get()
158158
# start ffplay
159-
os.system("ffplay -nodisp " + str(audio_file) + " -t " + str(duration_loop) + " -loop 0 & echo $! >" + tmp_file)
159+
if NatronEngine.natron.isLinux():
160+
os.system("ffplay -nodisp " + str(audio_file) + " -t " + str(duration_loop) + " -loop 0 & echo $! >" + tmp_file)
161+
elif NatronEngine.natron.isMacOSX():
162+
os.system("/opt/local/bin/ffplay -nodisp " + str(audio_file) + " -t " + str(duration_loop) + " -loop 0 & echo $! >" + tmp_file)
160163
app.pane1.Viewer1.pause()
161164
app.pane1.Viewer1.seek(thisNode.atFrameNum.get())
162165
app.pane1.Viewer1.startForward()

0 commit comments

Comments
 (0)