Re: Phix - Cannot open autoinclude VM/pLen.e

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

You might get somewhere by setting the environment variable EUINC (;-separated)...

No dice.

$ echo $EUDIR 
/home/greg/phix 

$ p test.ex 
"/home/greg/Projects/phix-test" 
Cannot open autoinclude VM/pLen.e 
in /home/greg/Projects/phix-test/, 
   /home/greg/Projects/phix-test/builtins/VM/, 
   /home/greg/Projects/phix-test/builtins/, 
or /home/greg/phix/include/. 
 
 
Press Enter, or d for diagnostics... 

petelomax said...

Phix does not currently do this, but I certainly wouldn't have any problem with say p -EUINC="x;y;z" (or similar) overriding any internal getenv("EUINC") calls, if that would work.

I'm curious, why are you using (or even supporting) EUDIR in the first place?

Coming in off the street, I would expect any modern language to find its include files in this order:

  1. One or more paths specified on the command line (e.g. -I <path>)
  2. One or more paths specified by config file (e.g. eu.cfg)
  3. The current directory from where the command is run
  4. The original directory where the executable resides

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu