diff options
Diffstat (limited to 'config')
-rwxr-xr-x | config/utils/generate_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/utils/generate_config.py b/config/utils/generate_config.py index 6adbb44e..1387ed12 100755 --- a/config/utils/generate_config.py +++ b/config/utils/generate_config.py @@ -21,10 +21,11 @@ from jinja2 import Environment, FileSystemLoader PARSER = argparse.ArgumentParser() PARSER.add_argument("--yaml", "-y", type=str, required=True) PARSER.add_argument("--jinja2", "-j", type=str, required=True) +PARSER.add_argument("--includesdir", "-i", type=str, action='append') ARGS = PARSER.parse_args() ENV = Environment( - loader=FileSystemLoader(os.path.dirname(ARGS.jinja2)), + loader=FileSystemLoader([os.path.dirname(ARGS.jinja2)] + ARGS.includesdir), extensions=['jinja2.ext.do'] ) gen_config_lib.load_custom_filters(ENV) |