Re: WEE: Icon Request
- Posted by jimcbrown (admin) Apr 18, 2015
- 1915 views
Oh, I get it now. What I'm going to do is use the include_paths(), which is controlled by the eu.cfg, to search for the selected interpreter. I think that will work. Sorry I was harsh on you, Ken.
Edit: include_paths won't work. It only returns the include paths of the interpreter wee is currently running in; it doesn't look for a eu.cfg in the current directory at runtime.
There's no library function to find an eu.cfg AFAIK. You'd need to use load_euphoria_config() from pathopen.e in the parser source code: http://scm.openeuphoria.org/hg/euphoria/file/9b49670d4abd/source/pathopen.e#l208
Frankly, I think you should just not try to support euphoria versions less than 4. Passing the full path to an alternate "eu.cfg" file will effect the selection different interpreters.
This is not correct. Selecting an alternate eu.cfg will not run a different interpreter. By the time the eu.cfg option is parsed, the interpreter has already been selected. You can't "change gears" afterwards with a setting inside of eu.cfg itself...