runner + cli/context: the stated reason for the lazy `import pwd` is stale (maity no longer imports the runner package)
tsk-ac4rv2vmtrth Proposed
Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: docs drift.
What is wrong
cli/context/credentials.md:225-228sayspwdis imported inside functions in the runner config, commands, asuser and install modules becausemaity.cliimports the runner parser. The comments say the same:cli/runner/src/maity_runner/asuser.py:188,:201andconfig.py:744("every maity command imports this module"),install.py:120("the CLI imports this module on Windows too").- That is no longer so:
maity.cliimports onlymaity.runner.internal(cli/src/maity/cli.py:45), andcli/tests/test_runner_package.py:29-56asserts nomaity_runnermodule is loaded. - The lazy imports still matter for another reason:
maity_runner.cli.maingives its own Windows refusal (cli/runner/src/maity_runner/cli.py:53-58), which only works if its modules import on Windows. commands.pyis in the entry list but has no lazyimport pwd.
Proposal
- Rewrite the entry and the four comments with the real reason; drop
commands.pyfrom the list; keep the imports where they are.
Effort / risk: S. None.