|
![](/i/fill.gif) |
>There's a difference between "directory of the current file" and
>"current directory".
Yes, that is exactly what I'm talking about. POV currently
has a policy that everything should be in the library include
path, but if you have a filename collision, the resolution
strategy is not well defined. I think using
#include "std/colors.inc"
#include "foo/colors.inc"
Is better than being careful to name files carefully to avoid
collision. Files included from "std/colors.inc" should be
taken from the "std" directory in preference to anywhere
else. This improves the prospect of proper modularisation
of POV scenes and libraries.
I don't think C works this way, but I think it is the way
that POV-ray _should_ work... :-)
In order of preference, POV searches the following
directories for an included file:
1. The directory of the current file.
2. The current directory.
3. Each directory in the list of library directories.
Which is the same policy as present, with (1) inserted.
Post a reply to this message
|
![](/i/fill.gif) |