Re: Independent Euphoria Interpreter
- Posted by Pete Lomax <petelomax at blueyonder.c?.uk> Dec 14, 2007
- 565 views
Matt Lewis wrote: > > Juergen Luethje wrote: > > > > Some comments about the updated page. > > > > On the page it currently reads: > > | Specifying a config file on the command line would preclude looking in > > | the other places. > > > > Yes, this will provide maximal flexibility. I disagree. If you run an app and it cannot find say libX, then you should just be able to specify where libX is on the command line, rather than libX, and machine.e, and win32lib/wxEuphoria, etc. Of course look where the command line says first, but if you do not find it I can think of no reason to prohibit looking elsewhere. > > Should more than one file be allowed? Perhaps. You might equally want a semicolon separator in the -i option. > When we talk about 'relative paths' are you saying relative to the > interpreter? Does that only make sense for the local conf file? It seems > like you'd almost have to. What do relative paths mean for the other files? From a windows perspective, if you're running C:\euphoria\bin\exw.exe then obviusly it ought to look for includes in C:\euphoria\include\. I would therefore expect there to be a file C:\euphoria\bin\euinc.conf (ie same dir as exw.exe) which contains the relative path "..\include\" (and/or attempt that as a last resort if no config file can be found). IMO relative paths should be relative to the location of the .conf file they are specified in, and a -i relative path should be relative to the current directory. You may also want a special notation such as "%%..\include\" whereby the %% is replaced with the location of exu/exw.exe. > > | * command line switches > > | * -c command line switch > > | * -i command line switch (a specific directory) > > > One is a config file (using the -c switch), and another is passing a > directory right there on the command line. Personally I would reword that as: * command line switches * -c <config file> * -i <directory of euinc.conf> Lastly, can you add a note that if %APPDATA% and/or %ALLUSERSPROFILE% do not exist then the corresponding step is skipped (rather than crash/error out). Regards, Pete