# 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")