Is there a way to yield the dir-path of a script? I’d like to include scripts via a “head”script, similar to c #include which is relative to the path.
i.e. In a script “c:/myscript.inp” I include a script “c:/scriptfolder/script.inp” and this script in turn includes other scripts on its own, relative to its path. E.g. with a line ‘ include “scripts/a.inp” ‘. Currently this is not working
and I guess the reason is that gretl looks for “scripts/a.inp” relative to the scriptdir in which I included “c:/scriptfolder/script.inp”; i.e. it tries to open “c:/scripts/a.inp” and not “c:/scriptfolder/scripts/a.inp” (in this example)
Best
Frederik