This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/md_pdf/consts.py

18 lines
518 B
Python
Raw Normal View History

2017-03-29 18:26:54 +01:00
import os
PROJECT_DIR = os.path.dirname(__file__)
WORKING_DIR = os.getcwd()
2017-03-29 22:18:01 +01:00
ASSET_DIR = os.path.join(PROJECT_DIR, 'assets')
2017-03-29 22:21:31 +01:00
2017-04-05 14:44:22 +01:00
CSL_DIR = os.path.join(ASSET_DIR, 'csl')
TEMPLATES_DIR = os.path.join(ASSET_DIR, 'templates')
STATIC_DIR = os.path.join(ASSET_DIR, 'static')
2017-03-29 18:26:54 +01:00
CONFIG_FILE = os.path.join(WORKING_DIR, 'mdp.yml')
2017-03-29 22:18:01 +01:00
CSL_DOWNLOAD_LINK = "https://github.com/citation-style-language/styles/archive/master.zip"
2017-05-25 21:33:18 +01:00
DATE_FORMAT = "%d %B %Y"
TIME_FORMAT = "%H:%M"
DATETIME_FORMAT = "{} {}".format(DATE_FORMAT, TIME_FORMAT)