Harald Oehlmann <
wort...@yahoo.de> wrote:
> Hi TCL'ers,
>
> still exploring AndroWish.
>
> % set auto_path:
> /assets/tcl8.6 /assets ./lib /assets/vfs1.4.2/template /assets/sdl2tk8.6
> /assets/sdl2tk8.6/ttk
> % pwd
> /
> % glob /lib/*
> /lib/armeabi
>
> I am surprised, that "./lib" is by default in the auto_path.
Wow, I was surprised enough by that I had to look on the androwish on
my phone.
Yep, I've got a ./lib entry too.
That entry seems "not right" for the system inserted paths. So I
suspect it may be an overlooked 'file normalize' call during the setup.
> Does that mean, that it is not allowed to change the current path
> (pwd)?
Unsure, but certianly if anything Tcl needed a file from "./lib" and
you changed the working directory, the lookup would fail. But
/lib/armeabi sounds like an android system library path, so it is
unlikely to contain anything Tcl, so changing pwd is unlikely to
produce any different outcomes. Which may be why it has not been
noticed until now.
I'd suggest you report it to the androwish developers and see what they
have to say.