Page 1 of 1

How to specify directory relative to interpreter

Posted: Wed Oct 14, 2015 3:43 pm
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.

Re: How to specify directory relative to interpreter

Posted: Wed Oct 14, 2015 7:50 pm
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

Re: How to specify directory relative to interpreter

Posted: Thu Oct 15, 2015 11:24 am
by PGilbert
Thanks Daniel for the education. This is answering my question.