feat(anki): force scan of single file/directory

This commit is contained in:
arne314
2024-12-31 14:51:17 +01:00
parent 1a84e22c5f
commit 4f335a919f
3 changed files with 29 additions and 14 deletions

View File

@@ -25,10 +25,10 @@ class TypstCompilationError(ValueError):
class TypstCompiler:
preamble: str
typst_cmd: str
typst_root_dir: str
typst_root_dir: Path
max_processes: int
def __init__(self, typst_root_dir: str, typst_cmd: str):
def __init__(self, typst_root_dir: Path, typst_cmd: str):
self.typst_cmd = typst_cmd
self.typst_root_dir = typst_root_dir
self.max_processes = round(os.cpu_count() * 1.5)