From dbbebf0c03a353f250c8a0380fca673b83be206a Mon Sep 17 00:00:00 2001 From: "N. Brouard" Date: Wed, 18 Jun 2014 16:42:35 +0000 Subject: [PATCH] Summary: If gnuplot is not in the path try on same directory than imach binary (OSX) Author: brouard --- src/imach.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/imach.c b/src/imach.c index d5fcfc2..9f27897 100644 --- a/src/imach.c +++ b/src/imach.c @@ -1,6 +1,10 @@ /* $Id$ $State$ $Log$ + Revision 1.149 2014/06/18 15:51:14 brouard + Summary: Some fixes in parameter files errors + Author: Nicolas Brouard + Revision 1.148 2014/06/17 17:38:48 brouard Summary: Nothing new Author: Brouard @@ -6659,7 +6663,11 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf
\n",\ printf("Starting graphs with: %s\n",plotcmd);fflush(stdout); if((outcmd=system(plotcmd)) != 0){ - printf("\n Problem with gnuplot\n"); + printf("\n Problem with gnuplot command %s\n"plotcmd); + printf("\n Trying on same directory\n"); + sprintf(plotcmd,"./gnuplot %s", optionfilegnuplot); + if((outcmd=system(plotcmd)) != 0) + printf("\n Still a problem with gnuplot command %s\n", plotcmd); } printf(" Wait..."); while (z[0] != 'q') { -- 2.43.0