How to specify directory relative to interpreter

Installing APL, Sorting out Fonts, Keyboards, etc.

How to specify directory relative to interpreter

Postby PGilbert on Wed Oct 14, 2015 3:43 pm

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.
User avatar
PGilbert
 
Posts: 362
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: How to specify directory relative to interpreter

Postby DanB|Dyalog on Wed Oct 14, 2015 7:50 pm

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
DanB|Dyalog
 

Re: How to specify directory relative to interpreter

Postby PGilbert on Thu Oct 15, 2015 11:24 am

Thanks Daniel for the education. This is answering my question.
User avatar
PGilbert
 
Posts: 362
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests