From: Samuele P. <pe...@in...> - 2001-05-22 08:44:45
|
Hi [Armin Ehrenfels] > Hi Samuele, > > Samuele Pedroni schrieb: > > > Under w2k one can put a personal .jython file (contents as the registry) > > under Documents and Settings/*user-name* (or something like that) > > in NT there should be something similar, just start jython > > and ask: > > > > from java.lang import System > > System.getProperty("user.home") > > > > in that directory you can put your .jython file and deduce the general > > case <wink> > > That was my first guess. So, I copied .jython from Linux to registry in > C:\winnt\profiles\armin which is the value of user.home. Didn't work. It > only works when the registry file is in Jython's installation directory. > > Regards Note: the personal file should be named .jython also under windows ! I have tried this concretely under w9x (home ~ c:\windows) and w2k (home ~ see above) and it works. Things to check: * a registry (.jython) file should respect the hosting os conventions: - Windows: path sep \\ or /, path list sep ; - Un*x: path sep / , path list sep : having a single \ (which is a continues-next-line marker) around instead of a \\ seems to prevent proper parsing of the file (symptom: sys.registry seems empty ({})), (we are using the java api for that) * Test: copy registry from jython inst dir to your home dir as .jython and put a line like a.Test = yup in it, load jython and check whether sys.registry contains a.Test=yup. Regards. |