aboutsummaryrefslogtreecommitdiff
path: root/pd/extra/pd~
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2008-12-30 01:51:31 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2008-12-30 01:51:31 +0000
commit0648504ff46cde69a7392a647d718f621c402b08 (patch)
tree142fa7cc238f6c22922ab8f91230ecdc344a34b3 /pd/extra/pd~
parentb56403eec4b767e04880c418a467b88f7cfeb2ca (diff)
0.42-0test08
svn path=/trunk/; revision=10469
Diffstat (limited to 'pd/extra/pd~')
-rw-r--r--pd/extra/pd~/pd~.c10
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,