Re: system independent access to home folder and script folder?

theozh via gnuplot-info <[email protected]> Fri, 27 Feb 2026 09:39:27 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
what about an if/else statement? Something like...

myHomeDir = GPVAL_SYSNAME[1:7] eq "Windows" ? system("echo %userprofile%") : system("echo ~")

Maybe you could also use the gnuplot variable GPVAL_PWD instead, which is the current working directory, but not necessarily the home directory.



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info