Hi all -<br><br>is it possible to include programmatically generated path? <br><br>i.e. <br><br>instead of <br><br><span style="font-family: courier new,monospace;">-include("../../foo.hrl").</span><br style="font-family: courier new,monospace;">
<br>write <br><br><span style="font-family: courier new,monospace;">-include(dynamic_determine("foo.hrl")).</span> <br style="font-family: courier new,monospace;"><br>I suspect not (the above don't compile for me), but the idea is that you might not know for sure where the file would be, and rely on the vm to figure it out via the code:which() mechanism. For example, yaws can be installed locally or globally, and if you need access to yaws hrl files, you can't depend on it exist @ a particular location (assuming your code branch has no relation with yaws' code branch), and it's a pain if one has to modify the source if the locations differ.
<br><br>What's the best practice to deal with such situation? Any thoughts are appreicated, thanks.<br>yc<br><br>