Move csl dir to consts

This commit is contained in:
Jake Howard 2017-03-29 22:21:31 +01:00
parent 2a12c62ca3
commit 7de3895a10
2 changed files with 4 additions and 2 deletions

View File

@ -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')

View File

@ -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():