fontlab_aidus_agentus.install · declarations 001
Back to fontlab_aidus_agentus.install
ACTIONS
module-attribute
ACTIONS
FONTLAB
module-attribute
FONTLAB
MARKER
module-attribute
MARKER
MARKER_FORMAT
module-attribute
MARKER_FORMAT
MENU_FOLDER
module-attribute
MENU_FOLDER
PACKAGE
module-attribute
PACKAGE
SCRIPT
module-attribute
SCRIPT
check
check(user_folder: Path | None = None) -> dict[str, Any]
Report menu, package and brain-interpreter state without changing anything.
default_user_folder
default_user_folder() -> Path
Return FontLab 9's per-user folder (the parent of its Scripts folder).
install
install(user_folder: Path | None = None) -> Path
Write the menu scripts with an ownership manifest.
Unknown files are kept. A script this installer wrote is replaced only while unmodified; a modified, foreign or symlinked entry stops an install before anything changes, and every write or removal re-checks its destination first. A provisional manifest goes first, so an interrupted install can be rerun.
main
main(argv: list[str] | None = None) -> int
menu_path
menu_path(user_folder: Path | None = None) -> Path
menu_scripts
menu_scripts() -> dict[str, str]
Source text of each menu script, identical to the repository's Scripts/Aidus Agentus/ files.
menu_state
menu_state(target: Path) -> str
Classify the menu entry: missing, link, empty (unmarked, nothing inside), copy (ours, valid manifest) or foreign.
read_marker
read_marker(target: Path) -> dict[str, Any] | None
The validated ownership manifest, or None (absent, symlinked, malformed or foreign).
files maps each owned script to the sha256 written last; while an install is
in progress (state: installing) pending maps the scripts about to be
written to their new sha256, so an interrupted run can be resumed.
uninstall
uninstall(user_folder: Path | None = None) -> dict[str, Any] | None
Remove the unmodified files this installer wrote, then the folder if it is empty.
Returns None when nothing of ours is installed, else {"removed", "kept", "folder_removed"}.