Files
LangBot/tests/unit_tests
ShaoLOWu 05a27c3c89 fix(core): stop generate_files from clobbering the required_paths global
The directory-creation loop iterated as "for required_paths in
required_paths:" while declaring "global required_paths", so after the
first call the module-level list was rebound to the last iterated string
('data/labels'). A second call then iterated that string character by
character and attempted os.mkdir('d'), os.mkdir('a'), ... which raises
FileExistsError and aborts boot.

Rename the loop variable and drop the now-unneeded global declaration;
add regression tests pinning the module state and the repeat-call
behaviour.
2026-10-12 15:27:12 +08:00
..
2026-08-24 02:34:14 +00:00
2026-06-16 11:22:29 +08:00
2026-06-16 11:22:29 +08:00