# 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")
actually, I think if the Pd-0.38-4-extended-RC1.app is in the same directory where you start python, then you want to try something like this: pdexc = os.path.join(execdir, "./Pd-0.38-4-extended-RC1.app/Contents/Resources/bin/pd")
^ | | -> notice the "./"
-august.