From 1c474883be531bbcc04bb5b9877a10cdd761c17a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 29 Mar 2017 19:20:08 +0100 Subject: [PATCH] Use config dirs for io --- md_pdf/build/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/md_pdf/build/__init__.py b/md_pdf/build/__init__.py index b5c3bd5..1be55e1 100644 --- a/md_pdf/build/__init__.py +++ b/md_pdf/build/__init__.py @@ -7,10 +7,10 @@ import os def build(config): - data = read_files(os.path.join(WORKING_DIR, '*.md')) + data = read_files(os.path.abspath(config.input)) doc = build_document(data, os.path.join(WORKING_DIR, 'bib.yaml')) if 'html' in config.output_formats: - output_html(doc, os.path.join(WORKING_DIR, 'out')) + output_html(doc, os.path.abspath(config.output_dir)) if 'pdf' in config.output_formats: render_cover() - export_pdf(doc, os.path.join(WORKING_DIR, 'out')) + export_pdf(doc, os.path.abspath(config.output_dir))