On Fri, 12 Oct 2018, Allin Cottrell wrote:
I just tried a variant test -- I wasn't certain it would work,
but
it does. Exactly as described in my previous post, except that I
moved findme.inp into a subdirectory of ~/stats/myhre named
"subdir" and amended the include line to read
include subdir/findme.inp
It was found OK.
Ah but... maybe I've now found the case you're talking about. If I
execute the top-level script via
run ~/stats/myhre/myhre_test.inp
in the gretl console window, then ~/stats/myhre is not searched and
the other input files are not found. The same applies if I run a
one-line "meta-script" with the above "run" content from the script
window.
I don't think of either of these methods as "idiomatic" use of
gretl: to me, the "natural" way to run a script in the GUI is via
the Run button or Ctrl-R in the window containing the script in
question. Nonetheless, the fact that the script's directory is not
automatically searched in these cases should perhaps be considered a
bug.
(I'm not sure it's a bug when "run" is executed from within a
script, as in my second case above. Then it would displace the
primary script's location as the automatic search path, which is
probably not what's wanted.)
Allin