Hello, I just noticed that the 2003.1.10 version of context doesn't read environments anymore, when they are in the previous directory; I have to put them in the same directory as the processed file, it seems. I tried adding a \usepath[..], but it still doesn't work. Any ideas? -- Giuseppe "Oblomov" Bilotta
At 05:41 PM 1/25/2003 +0100, Giuseppe Bilotta wrote:
Hello,
I just noticed that the 2003.1.10 version of context doesn't read environments anymore, when they are in the previous directory; I have to put them in the same directory as the processed file, it seems. I tried adding a \usepath[..], but it still doesn't work. Any ideas?
sure, since such reports put me in panic mode, will upload new beta. \def\doreadfile#1#2#3#4% {\sanitizefilename#2\to\readfilename \checkfilename\readfilename \ifcase\kindoffile % not a full path or url, check for existence \doifelsenothing{#1} {\def\next{\redoreadfile\readfilename{#3}{#4}}}% {\def\next{\redoreadfile{\pathplusfile{#1}{\readfilename}}{#3}{#4}}}% \else % a full path or url, no further checking done \def\next{#3\dodoreadfile}% \fi \next} \def\redoreadfile#1#2#3% {\immediate\openin\scratchread=#1\relax \ifeof\scratchread % \writestatus\m!systems{cannot locate #1}\wait \immediate\closein\scratchread \decrement\readlevel\relax \ifnum\readlevel>\zerocount \edef\readfilename{\pathplusfile{\f!parentpath}{\readfilename}}% \def\next{\redoreadfile\readfilename{#2}{#3}}% \else \def\next{#3}% \fi \else \immediate\closein\scratchread % \writestatus\m!systems{#1 located}\wait \def\next{#2\dodoreadfile}% \fi \next} I forgot to set \readfilename; the reading macros have been adapted so that they accept full path specs and url's and do (something we need for the example framework), and something got lost along the way Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Sunday, January 26, 2003 Hans Hagen wrote: HH> At 05:41 PM 1/25/2003 +0100, Giuseppe Bilotta wrote:
Hello,
I just noticed that the 2003.1.10 version of context doesn't read environments anymore, when they are in the previous directory; I have to put them in the same directory as the processed file, it seems. I tried adding a \usepath[..], but it still doesn't work. Any ideas?
HH> sure, since such reports put me in panic mode, will upload new beta. [snip] Thank you, the patch seems to work :) -- Giuseppe "Oblomov" Bilotta
participants (2)
-
Giuseppe Bilotta
-
Hans Hagen