mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
feat(anki): force scan of single file/directory
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user