HomePhabricator

config: give it an includepaths option for looking for config files

Authored by JordiGH.

Description

config: give it an includepaths option for looking for config files

It is desirable to "derive" templates from the provided templates. A
simple way to do this is e.g.

%include map-cmdline.default

in your own mapfile. Then you only have to redefine a few templates
instead of copying over the whole thing. This %include mechanism
already works for the built-in templates because by default it *only*
looks for files that are in the same directory as the including
mapfile.

With this changeset, config grows an option to add more include paths
for config files.

Details

Committed
JordiGHMay 15 2015, 9:04 AM
Parents
rHGfe3a72a3e7ca: dirs.c: pass C string, not Python string, to _finddir()
Branches
Unknown
Tags
Unknown

Event Timeline