nico(e)k dio:
# execdir = os.path.dirname(sys.argv[0]) pdexc = os.path.join(execdir, "/Pd-0.38-4-extended-RC1.app/Contents/MacOS/Pd") arg = os.path.join(execdir, "audio.pd") os.spawnl(os.P_NOWAIT, pdexc, arg) # etc ...
try with pdexc = os.path.join(execdir, "/Pd-0.38-4-extended-RC1.app/Contents/Resources/bin/pd")
i have been looking into it better and it looks like pd is kind of open. check attached screenshot. the terminal top command sais there is a process called pd running
look at the two windows open on the left, one is a console and the small one is audio.pd which is the name of the file i am trying to open in pd. Looks like it doesnt fully get opened or something like that.
maybe it would be easier to do a shell script to open both pd and python.