[NTG-context] How to process a project residing in another directory

Mon Apr 16 23:44:33 CEST 2012

```On Mon, 16 Apr 2012, Helge Blischke wrote:

> By trial and eror I found out that
> context --path=...
> tries to run the scripts and programs within that directory
> which leads to abort if e.g. the calling user has no write permission
> there.

Can you summarize your results on the wiki?

> On the other hand, inserting a \usepath[...] just after the \start... command
> functions as exspected.
>
> Thus, I'd propose to provide an additional option
> --usepath=...
> what does exactly that, which avoids editing the main.tex file.

Easy to do on your own:

\doifsomething{\env{usepath}}
{\expanded{\usepath[\env{usepath}]}}

and then call you tex file using

context --arguments=usepath=/path/to/set filename