Add explanation for why we're not using :code.priv_dir/1 for priv/vocabs

This commit is contained in:
Marcel Otto 2021-10-02 23:04:26 +02:00
parent e95c5c685d
commit 533cb33aab

View file

@ -16,6 +16,8 @@ defmodule RDF.Vocabulary.Namespace do
@type t :: module
# Note: We're not using :code.priv_dir/1 here on purpose, since vocabulary files should be
# searched in the vocabs dir of the project in which the vocabulary namespace is defined.
@vocabs_dir "priv/vocabs"
defmacro __using__(_opts) do