Add directory to search path for consult/1

Initially it seemed to be a simple quiestion, but I’am struck :frowning:

How can I make Prolog to look for .pl files to consult not only in working directory of Prolog, but also in specific subfolder(s)? I want to place there some autogenerated Prolog code and don’t want it to be mixed with hand-written files. Please help )

Does this answer your question?

Using absolute_file_name/3 and user:file_search_path/2