[PD] launching pd from python

august august at develop.ment.org
Fri Sep 2 15:48:53 CEST 2005

> > 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 "./"
> hi august
> i tried and it doesnt seem to make any difference. Looks like Python
> doesnt like something about PD.


sorry, I wrote that email early in the morning.  the only reason for doing
the "./" would be trying to spawn a process from the same directory as
where you ran python.  but, int he mean time, I see in the code that you
have set up the paths properly.

However, I was farting around with subprocesses in python yesterday (for
another reason).  I can start another app without any probs using
os.system( ).   I had some problems with os.spawnl() calls.   I also
tried using python's subprocess wrapper, Popen() -> but, that just calls
execl(), or spawnl() or system() as it sees fit.   Today, I will try to
run os.system() in a thread and see if I can get decent behavior.  The app
I am trying to run is mplayer.


More information about the Pd-list mailing list