[PD] launching pd from python

altern altern2 at gmail.com
Thu Sep 1 18:38:05 CEST 2005

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pd.gif
Type: image/gif
Size: 17058 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050901/e38470a7/attachment.gif>

More information about the Pd-list mailing list