From: Arjen M. <Arj...@de...> - 2017-10-12 07:43:01
|
Hi Frédéric, Sure that would be a possibility, but you could write it yourself ;). You don't mention the programming language you're using, but it should not be too difficult - all that is required is that you call the putenv() C function to set the environment variable from within your program to a value indicating that directory. Possibly some more work is needed, as that directory is likely to be relative to the location of your program. Regards, Arjen > -----Original Message----- > From: Frédéric [mailto:ufo...@gm...] > Sent: Thursday, October 12, 2017 9:24 AM > To: plp...@li... > Subject: [Plplot-general] setting PLPLOT_LIB by a function at the start of the > program > > Hi, > > I am studying the possibility to use plplot in my project. > I am using static linking and would like to store the font files in a specific sub- > directory of my program directory. > I do not like to rely on an environment variable (PLPLOT_LIB*) to point to this > directory (anybody could remove it thinking it should not be there) and would prefer > to call an initialize() function at the start of the program where I provide the path to > the lib directory. > > Could we imagine adding this to the library? > > Thanks, > > F > > * http://plplot.sourceforge.net/docbook-manual/plplot-html-5.13.0/deploying.html > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most engaging tech > sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |