[Gretl-devel] environment variables in gretl script

Allin Cottrell cottrell at wfu.edu
Thu Apr 12 08:59:39 EDT 2007


On Thu, 12 Apr 2007, Sven Schreiber wrote:

> So I am thinking of other places to store the temp files. However,
> py4gretl needs to pass that information from the gretl side to the
> python side, so it's name must somehow be accessible from gretl script.
> 
> Hence my question: what type of environment variables can be used in a
> script? Or any other ideas on a good place to store temp files (on all
> supported platforms)?

See chapter 11, section 2 of the User's Guide, sub-head "Built-in 
strings".  You have "@userdir" which gives the user directory, 
which must be writable (or else gretl will fail at startup).

We could maybe add a "getenv" function for strings, so you could 
grab variables in the external environment.

Allin.




More information about the Gretl-devel mailing list