Hi Elias,
if no library reference is given in APL then library reference 0
(corresponding to the first
path shown in *)LIBS*) is assumed. Library reference 0 is also used for
commands
that do not allow a library reference number (eg. )IN and )OUT).
If no path is given in a preferences file then the path is constructed
from *APL_LIB_ROOT
*by**appending /workspaces for libref 0, /wslib1 for libref 1, /wslib2
for libref 2, and so on.
This directory structure was taken from IBM APL2.
If no *APL_LIB_ROOT* is set then one is searched from directory ','
upwards hoping to find one.
//// Jürgen
On 06/22/2014 03:42 PM, Elias Mårtenson wrote:
Thanks. What about the workspaces paths?
Regards,
Elias
On 22 Jun 2014 15:35, "Juergen Sauermann"
<[email protected] <mailto:[email protected]>>
wrote:
Hi Elias,
it depends on a number of things (*preferences* files, environment
variable *APL_LIB_ROOT*, and
*current directory)* see LibPaths::search_APL_lib_root().
You can view the resulting setting with command )LIBS in APL. I
believe in your case *APL_LIB_ROOT* is
the way to go.
/// Jürgen
On 06/22/2014 01:26 PM, Elias Mårtenson wrote:
Hello Jürgen,
What is the recommended way to configure the paths now? I need to
be able to specify the prefix path as well as the path to the
workspace when running GNU APL as a library (in Android).
Note that I don't know the path until the program actually
starts, but I have access to it before running the init function
(the one that is normally called from main()).
Regards,
Elias