Re: Euphoria environment variables (was: quick cgi question)
- Posted by Salix <salix at freemail.hu> Apr 01, 2006
- 495 views
ChrisBurch2 wrote: > > Juergen Luethje wrote: > > > > I also encountered problems with the environment variables when running > > Euphoria from a USB drive (on Windows XP). > > > > Rob, I think usage of Euphoria would be simpler, if Euphoria would read > > its settings from an INI file rather than from environment variables, > > e.g.: > > > > ---------------------------- Euphoria.ini ---------------------------- > > [Directories] > > EUDIR=C:\Programs\Euphoria\ > > EUINC=C:\Programs\Euphoria\Arwen\bin\;C:\Programs\Euphoria\wxEuphoria\ > > ---------------------------------------------------------------------- > > > > The interpreter/translator just had to look for a file "Euphoria.ini" in > > the same directory where it is located itself. 100% cross-platform, and > > no hassle with environment variables any more. What do you think? > > > > Thats a nice idea - how about reading from an ini file if present in the > current directory, or falling back to environment variables if not present? That would be really useful! Instead of the *.ini I could imagine an env.e with this content:
global constant EUDIR="C:\Programs\Euphoria\" global constant EUINC={"C:\Programs\Euphoria\Arwen\bin\","C:\Programs\Euphoria\wxEuphoria\"}
Regards, Salix