From 7de3895a108ec67b1cdb88e057554763c5be5b54 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 29 Mar 2017 22:21:31 +0100 Subject: [PATCH] Move csl dir to consts --- md_pdf/consts.py | 2 ++ md_pdf/csl.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/md_pdf/consts.py b/md_pdf/consts.py index eec4c62..230f92c 100644 --- a/md_pdf/consts.py +++ b/md_pdf/consts.py @@ -3,6 +3,8 @@ import os PROJECT_DIR = os.path.dirname(__file__) WORKING_DIR = os.getcwd() ASSET_DIR = os.path.join(PROJECT_DIR, 'assets') +CSL_DIR = os.path.join(ASSET_DIR, 'csl') + CONFIG_FILE = os.path.join(WORKING_DIR, 'mdp.yml') diff --git a/md_pdf/csl.py b/md_pdf/csl.py index 51a76c5..a9b0d2a 100644 --- a/md_pdf/csl.py +++ b/md_pdf/csl.py @@ -1,4 +1,4 @@ -from md_pdf.consts import PROJECT_DIR, CSL_DOWNLOAD_LINK, ASSET_DIR +from md_pdf.consts import CSL_DOWNLOAD_LINK, ASSET_DIR, CSL_DIR from md_pdf.exceptions import PrematureExit import os import urllib @@ -8,8 +8,8 @@ import shutil from md_pdf.utils import remove_dir from progressbar import ProgressBar + CSL_TEMP_DIR = os.path.join(ASSET_DIR, 'styles-master') -CSL_DIR = os.path.join(ASSET_DIR, 'csl') def check_csl():