On Tue, 18 Aug 2009, Allin Cottrell wrote:
On Tue, 18 Aug 2009, Sven Schreiber wrote:
> relative paths don't work for me on linux when using 'include' in
> scripts, while ironically they seem to work fine on Windows.
>
> Here's the example:
>
> <script1>
> # this script 'scriptinlevel2.inp' resides in $HOME/gretlpathtest/level2
>
> include ../scriptingretlpathtest.inp
>
> print "hello"
> </script1>
>
> <script2>
> # this script 'scriptingretlpathtest.inp' resides in $HOME/gretlpathtest
>
> function pathtest(int yo)
> print "inside function"
> end function
> </script2>
>
> Now when I run the first script on linux, an error window pops up "no
> such file or directory".
[...]
I'll have to try testing on Windows -- I'm not sure why your
experiment would work there ;-)
I've now tried with the current gretl snapshot on Vista, and I get
exactly the same behaviour as on Linux: the second script is found
if and only if the gretl working directory is set to the directory
where the first script is located. This is what I would expect.
Allin.