add block_forever example

update example READMEs

add script entry point for block_forever example
add poe task block-forever
This commit is contained in:
2026-03-25 05:46:14 +00:00
parent e1fa0eea79
commit 336a52d172
6 changed files with 92 additions and 8 deletions

View File

@@ -6,3 +6,11 @@ from pathlib import Path
def ex_events():
scriptpath = Path.cwd() / 'examples' / 'events' / '.'
subprocess.run([sys.executable, str(scriptpath)])
def ex_block_forever():
scriptpath = Path.cwd() / 'examples' / 'block_forever' / '.'
try:
subprocess.run([sys.executable, str(scriptpath)])
except KeyboardInterrupt:
sys.exit(0)