Re: Phix - Cannot open autoinclude VM/pLen.e
- Posted by ghaberek (admin) Jul 24, 2017
- 1675 views
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:
- One or more paths specified on the command line (e.g. -I <path>)
- One or more paths specified by config file (e.g. eu.cfg)
- The current directory from where the command is run
- The original directory where the executable resides
-Greg