How to specify directory relative to interpreter

Installing APL, Sorting out Fonts, Keyboards, etc.
Post Reply
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

How to specify directory relative to interpreter

Post by PGilbert »

Is it possible to specify the directories in Options -> Configure relative to the directory of the interpreter instead of absolute ? For example for the directory of SALT: C:\Program Files (x86)\Dyalog\Dyalog APL 14.1 Unicode\SALT I would like to use instead something like: .\SALT so it is relative to the interpreter. Is it possible ?

Thanks in advance.
DanB|Dyalog

Re: How to specify directory relative to interpreter

Post by DanB|Dyalog »

You can specify the path to use by default in Options/Configure or ]settings.
This means that whenever you use a relative path to ]save or ]load this path will be used.
You can do

Code: Select all

   ]save xyz =

to save in the path mentioned there. If the path was /tmp it will be saved there.
If you want to save it under the location where Dyalog resides you can use

Code: Select all

   ]save xyz [dyalog]\xyz

If you want to save it where you current directory is you can use

Code: Select all

   ]save xyz .

If you want to save it where your ws is you can use

Code: Select all

   ]save xyz [ws]\zzz
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: How to specify directory relative to interpreter

Post by PGilbert »

Thanks Daniel for the education. This is answering my question.
Post Reply