diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2008-12-30 01:51:31 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2008-12-30 01:51:31 +0000 |
commit | 0648504ff46cde69a7392a647d718f621c402b08 (patch) | |
tree | 142fa7cc238f6c22922ab8f91230ecdc344a34b3 /pd/extra/pd~ | |
parent | b56403eec4b767e04880c418a467b88f7cfeb2ca (diff) |
0.42-0test08
svn path=/trunk/; revision=10469
Diffstat (limited to 'pd/extra/pd~')
-rw-r--r-- | pd/extra/pd~/pd~.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pd/extra/pd~/pd~.c b/pd/extra/pd~/pd~.c index 49b398b3..3cf713fe 100644 --- a/pd/extra/pd~/pd~.c +++ b/pd/extra/pd~/pd~.c @@ -177,11 +177,15 @@ static void pd_tilde_donew(t_pd_tilde *x, char *pddir, char *schedlibdir, snprintf(pdexecbuf, MAXPDSTRING, "%s/bin/pd", pddir); if (stat(pdexecbuf, &statbuf) < 0) { - snprintf(pdexecbuf, MAXPDSTRING, "%s/pd", pddir); + snprintf(pdexecbuf, MAXPDSTRING, "%s/../../../bin/pd", pddir); if (stat(pdexecbuf, &statbuf) < 0) { - ERROR "pd~: can't stat %s", pdexecbuf); - goto fail1; + snprintf(pdexecbuf, MAXPDSTRING, "%s/pd", pddir); + if (stat(pdexecbuf, &statbuf) < 0) + { + ERROR "pd~: can't stat %s", pdexecbuf); + goto fail1; + } } } snprintf(schedbuf, MAXPDSTRING, "%s/pdsched%s", schedlibdir, |