pytex/PyTeX/config/global_config.py

35 lines
852 B
Python

from pathlib import Path
from typing import Optional
from .formatting_config import BasicFormattingConfig
class GlobalPyTeXConfig:
_source_root: Optional[Path] = None
_build_root: Optional[Path] = None
_doc_root: Optional[Path] = None
_tex_root: Optional[Path] = None
_wrapper_dir: Optional[Path] = None
_default_formatting_config: Optional[BasicFormattingConfig] = None
_recursive: bool = True
_overwrite_existing_files: bool = False
_clean_old_files: True
_allow_dirty: bool = False
@classmethod
def build_root(cls) -> Path:
return cls._build_root
@classmethod
def doc_root(cls) -> Path:
return cls._doc_root
@classmethod
def source_root(cls) -> Path:
return cls._source_root
@classmethod
def tex_root(cls) -> Path:
return cls._tex_root