On Wed, Sep 06, 2006 at 09:11:19AM +0200, Kees Bakker wrote: > On Saturday 19 August 2006 13:53, Tristan Gingold wrote: > > On Sat, Aug 19, 2006 at 06:05:15AM -0400, Stephen Leake wrote: > > > > > In my applications, I compute things like Install_Dir from the path to > > > the executable, which is available from the command line information. > > This is another possibility. On Unix system this is not reliable. > > Why not reliable? Our tools do it that way for the last 15 years or so, never > had a problem. argv[0] may not be strictly correct, argv[0] may be a (symbolic) link. These may be theorical issues but if the user meets such an issue he/she will be lost.
> The fact that a registry key is used to lookup a directory is (at the moment) > a hidden factor which we do not like. My next plan is to try (as you > suggested) > the -P option, and eliminate all registry stuff as follows: > > * install ghdl 0.25 in C:\ghdl > * create a zip > * uninstall ghdl > * unpack the zip in C:\ghdl-0.25 > * run the tool with -P C:\ghdl-0.25 > * repeat for other ghdl versions > > This will fail if something, somehow still uses C:\ghdl to search anything, > which > is exactly what I want to see. Yes you may use --PREFIX= to override the registry stuff. Tristan. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
