Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-14 Thread context
Hello Hans, I made some observations and ... - shortly, the simpliest solution seems to me: Would it be accptable for your to replace " local homedir = osgetenv(ostype == "windows" and 'USERPROFILE' or 'HOME') or '' " with: " local homedir= ostype=="windows" and

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-12 Thread context
Hello, On 2020-05-12 10:53, Hans Hagen wrote: On 5/11/2020 5:57 PM, cont...@vivaldi.net wrote: d:\Lukas\ConTeXt\Test\EnvHome> - I'm still getting: 1   C:/Users/u×ivatel 2   C:/Users/u×ivatel 3   C:/Users/u×ivatel 4   C:/Users/u×ivatel whilst HOME environment has been

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-12 Thread Hans Hagen
On 5/12/2020 11:36 AM, cont...@vivaldi.net wrote: And - once I "inject" an extra debug info - do I have to call "context.exe --make --generate" (or similar)? You need to remake the fomat (and make sure you have the right mtxrun/context scripts). Hans

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-12 Thread Hans Hagen
On 5/11/2020 5:57 PM, cont...@vivaldi.net wrote: d:\Lukas\ConTeXt\Test\EnvHome> - I'm still getting: 1   C:/Users/u×ivatel 2   C:/Users/u×ivatel 3   C:/Users/u×ivatel 4   C:/Users/u×ivatel whilst HOME environment has been set to "DummyHome"  (see "echo %HOME%"). What's

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
Hello Hans, so I updated to latest ConTeXt (thanks Marco and Henning) but there is still a problem - see: d:\Lukas\ConTeXt\Test\EnvHome>set HOME=DummyHome d:\Lukas\ConTeXt\Test\EnvHome>set PATH=d:\Ctx-Beta\tex\texmf-mswin\bin;%PATH% d:\Lukas\ConTeXt\Test\EnvHome>echo %HOME% DummyHome

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
Hello, great, this fixed my problem! (But another one came...) Best regards, Lukas On 2020-05-11 12:58, Marco Patzer wrote: On Mon, 11 May 2020 12:50:51 +0200 cont...@vivaldi.net wrote: so I made a new parallel installation, following exactly instructions here:

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
Hello, On 2020-05-11 10:51, Hans Hagen wrote: Hi, system  > ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 2020.5.10  int: english/english Did I updated ConTeXt correctly? Well, you made a fresh format, but use a version from january, so ... so I made a new parallel

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread Henning Hraban Ramm
> Am 11.05.2020 um 12:54 schrieb Henning Hraban Ramm : > > >> Am 11.05.2020 um 12:50 schrieb cont...@vivaldi.net: >> >> - is "--context=beta" OK here? > > Try --context=current Sorry, of course "latest", as Marco wrote, I mixed that up. HR

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
Hello Hans, my step-by-step actions: 1. Updated ConTeXt yesterday - described before. 2. Created EnvHome.mkiv for testing: \starttext Ahoj \ctxlua{print("1",environment.homedir)} \ctxlua{print("2",environment.oldhome)} \ctxlua{print("3",os.getenv("HOME"))}

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread Marco Patzer
On Mon, 11 May 2020 12:50:51 +0200 cont...@vivaldi.net wrote: > so I made a new parallel installation, following exactly instructions > here: > >https://wiki.contextgarden.net/Windows_10_64_bit_Installation_2019 > > I forced 32b version due to some reasons. > > But I'm still getting the

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread Henning Hraban Ramm
> Am 11.05.2020 um 12:50 schrieb cont...@vivaldi.net: > > - is "--context=beta" OK here? Try --context=current HR ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread Hans Hagen
Hi, system  > ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 2020.5.10  int: english/english Did I updated ConTeXt correctly? Well, you made a fresh format, but use a version from january, so ... Hans -

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-10 Thread context
Hello, Hans, I've just renewed the Ctx Beta installation, but 'environment.oldhome' seems be unavailable. Was I "too quick" with renewing Ctx? Testing sample: \starttext Ahoj \startluacode context(environment.oldhome or "??") \stopluacode \stoptext - prints "??". I

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-10 Thread Hans Hagen
On 5/10/2020 2:33 PM, cont...@vivaldi.net wrote: I've just renewed the Ctx Beta installation, but 'environment.oldhome' seems be unavailable. are you ser HOME is set? \ctxlua{print("1",environment.homedir)} \ctxlua{print("2",environment.oldhome)} \ctxlua{print("3",os.getenv("HOME"))}

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-08 Thread Hans Hagen
On 5/7/2020 12:30 PM, cont...@vivaldi.net wrote: Hello Hans, - I would need to work with the original value in run-time (Win7 / WinX; ConTeXt MkIV). I'll add   environment.oldhome being the original one (but no testing done here) would be great, thank you! I guess it will be available

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-07 Thread context
Hello Hans, - I would need to work with the original value in run-time (Win7 / WinX; ConTeXt MkIV). I'll add environment.oldhome being the original one (but no testing done here) would be great, thank you! I guess it will be available over the night (= ConTeXt latest)? Lukas Hans

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-07 Thread Hans Hagen
On 5/6/2020 5:43 PM, cont...@vivaldi.net wrote: Hello, before I run ConTeXt, I set a (new) variable "HOME" to point to a particular directory. ConTeXt changes its value during startup - it sets its value to %USERPROFILE% - I guess it is to unify environment somehow for all platforms

[NTG-context] Retrieving original value of enviroment variable HOME

2020-05-06 Thread context
Hello, before I run ConTeXt, I set a (new) variable "HOME" to point to a particular directory. ConTeXt changes its value during startup - it sets its value to %USERPROFILE% - I guess it is to unify environment somehow for all platforms ConTeXt supports; probably here: data-ini.lua,