From 67020eb8c56b0d93cba88e97aa97f3b516179227 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 May 2017 14:12:31 +0100 Subject: [PATCH] Add output dir to context --- md_pdf/build/context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/md_pdf/build/context.py b/md_pdf/build/context.py index 28be8b4..7919d79 100644 --- a/md_pdf/build/context.py +++ b/md_pdf/build/context.py @@ -3,6 +3,7 @@ from word_count import word_count from md_pdf.utils import get_plain_text from dateutil import parser import datetime +import os EXTRA_CONTEXT = { @@ -23,7 +24,7 @@ def get_context(config, content): **context, **EXTRA_CONTEXT, **{ - + 'output_dir': os.path.abspath(config['output_dir']), } ) if config.get('show_word_count'):