From 0648504ff46cde69a7392a647d718f621c402b08 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Tue, 30 Dec 2008 01:51:31 +0000 Subject: 0.42-0test08 svn path=/trunk/; revision=10469 --- pd/extra/pd~/pd~.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pd/extra/pd~') 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, -- cgit v1.2.1