add setters to build dir spec
This commit is contained in:
parent
fde1aff4f5
commit
225cd19788
1 changed files with 22 additions and 4 deletions
|
@ -14,7 +14,7 @@ class BuildDirSpecification:
|
||||||
self._pytex_source_root: Optional[Path] = source_root
|
self._pytex_source_root: Optional[Path] = source_root
|
||||||
self._build_root: Optional[Path] = build_root
|
self._build_root: Optional[Path] = build_root
|
||||||
self._doc_root: Optional[Path] = doc_root
|
self._doc_root: Optional[Path] = doc_root
|
||||||
self._tex_root: Optional[Path] = tex_root
|
self._tex_source_root: Optional[Path] = tex_root
|
||||||
self._wrapper_dir: Optional[PurePath] = wrapper_dir
|
self._wrapper_dir: Optional[PurePath] = wrapper_dir
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -24,6 +24,10 @@ class BuildDirSpecification:
|
||||||
else:
|
else:
|
||||||
return self._build_root
|
return self._build_root
|
||||||
|
|
||||||
|
@build_root.setter
|
||||||
|
def build_root(self, build_root: Path):
|
||||||
|
self._build_root = build_root
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def doc_root(self) -> Path:
|
def doc_root(self) -> Path:
|
||||||
if self._doc_root is None:
|
if self._doc_root is None:
|
||||||
|
@ -31,6 +35,10 @@ class BuildDirSpecification:
|
||||||
else:
|
else:
|
||||||
return self._doc_root
|
return self._doc_root
|
||||||
|
|
||||||
|
@doc_root.setter
|
||||||
|
def doc_root(self, doc_root: Path):
|
||||||
|
self._doc_root = doc_root
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def pytex_source_root(self) -> Path:
|
def pytex_source_root(self) -> Path:
|
||||||
if self._pytex_source_root is None:
|
if self._pytex_source_root is None:
|
||||||
|
@ -38,12 +46,20 @@ class BuildDirSpecification:
|
||||||
else:
|
else:
|
||||||
return self._pytex_source_root
|
return self._pytex_source_root
|
||||||
|
|
||||||
|
@pytex_source_root.setter
|
||||||
|
def pytex_source_root(self, pytex_source_root: Path):
|
||||||
|
self._pytex_source_root = pytex_source_root
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tex_source_root(self) -> Path:
|
def tex_source_root(self) -> Path:
|
||||||
if self._tex_root is None:
|
if self._tex_source_root is None:
|
||||||
return Path('build/source')
|
return Path('build/source')
|
||||||
else:
|
else:
|
||||||
return self._tex_root
|
return self._tex_source_root
|
||||||
|
|
||||||
|
@tex_source_root.setter
|
||||||
|
def tex_source_root(self, tex_source_root: Path):
|
||||||
|
self._tex_source_root = tex_source_root
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wrapper_dir(self) -> PurePath:
|
def wrapper_dir(self) -> PurePath:
|
||||||
|
@ -52,4 +68,6 @@ class BuildDirSpecification:
|
||||||
else:
|
else:
|
||||||
return self._wrapper_dir
|
return self._wrapper_dir
|
||||||
|
|
||||||
|
@wrapper_dir.setter
|
||||||
|
def wrapper_dir(self, wrapper_dir: Path):
|
||||||
|
self._wrapper_dir = wrapper_dir
|
||||||
|
|
Loading…
Reference in a new issue