From 112a2811be8cbaff3dcf64353a13aabd9876bd4c Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Mon, 27 Apr 2026 06:12:19 +0300 Subject: feat: add empty _swap.txt, remove atexit from swap script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The atexit handler in --swap mode caused immediate restore on process exit, breaking standalone usage. Makefile trap and RTD post_build handle restore reliably. 🤖 Generated by [robots](https://vyos.io) --- scripts/swap_sources.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'scripts/swap_sources.py') diff --git a/scripts/swap_sources.py b/scripts/swap_sources.py index f983dbfa..7e82e876 100644 --- a/scripts/swap_sources.py +++ b/scripts/swap_sources.py @@ -295,8 +295,6 @@ def main(argv=None): parser.error(f"docs directory not found: {docs_dir}") if args.swap: - import atexit - atexit.register(do_restore, docs_dir) do_swap(docs_dir) elif args.restore: do_restore(docs_dir) -- cgit v1.2.3