Move csl dir to consts
This commit is contained in:
parent
2a12c62ca3
commit
7de3895a10
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@ import os
|
||||||
PROJECT_DIR = os.path.dirname(__file__)
|
PROJECT_DIR = os.path.dirname(__file__)
|
||||||
WORKING_DIR = os.getcwd()
|
WORKING_DIR = os.getcwd()
|
||||||
ASSET_DIR = os.path.join(PROJECT_DIR, 'assets')
|
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')
|
CONFIG_FILE = os.path.join(WORKING_DIR, 'mdp.yml')
|
||||||
|
|
||||||
|
|
|
@ -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
|
from md_pdf.exceptions import PrematureExit
|
||||||
import os
|
import os
|
||||||
import urllib
|
import urllib
|
||||||
|
@ -8,8 +8,8 @@ import shutil
|
||||||
from md_pdf.utils import remove_dir
|
from md_pdf.utils import remove_dir
|
||||||
from progressbar import ProgressBar
|
from progressbar import ProgressBar
|
||||||
|
|
||||||
|
|
||||||
CSL_TEMP_DIR = os.path.join(ASSET_DIR, 'styles-master')
|
CSL_TEMP_DIR = os.path.join(ASSET_DIR, 'styles-master')
|
||||||
CSL_DIR = os.path.join(ASSET_DIR, 'csl')
|
|
||||||
|
|
||||||
|
|
||||||
def check_csl():
|
def check_csl():
|
||||||
|
|
Reference in a new issue