|
From: Daniel J S. <dan...@ie...> - 2006-06-19 22:44:48
|
Timoth=E9e Lecomte wrote: >>Dan >=20 > To some extent, this run-time configuration is possible with the=20 > environment variable GNUPLOT_PS_DIR. Ethan has written the code so that= =20 > it looks for this variable first, as it is done to find the gnuplot_x11= =20 > executable (X11_DRIVER_DIR) for example. >=20 > Anyway, a configuration file only moves the problem to another place :=20 > where is the configuration file located ??? Another hard-coded path ??? Yes, I see your point. Well, I guess then the only reason to have this kind of thing inside the = C code: /* This definition should be in config.h or in the compilation flags */ #ifndef GNUPLOT_PS_DIR #define GNUPLOT_PS_DIR "/usr/local/share/gnuplot/4.1/PostScript" #endif is to allow for someone to compile gnuplot without the aid of the autocon= f/make tools. (I'm unfamiliar with other platform compilation processes.= ) Otherwise, I'd say toss this definition. In any case, perhaps it is wise to allow some means to set this path eith= er at command line or as 'set path term "asdf"'. That way we can put som= ething in the documentation "You don't have to go through the trouble of = recompiling; just find your resource files and type 'set path'." Dan |