mirror of
https://github.com/onyx-and-iris/streamlabs-socketio-py
synced 2026-04-01 11:19:10 +00:00
update example READMEs add script entry point for block_forever example add poe task block-forever
17 lines
393 B
Python
17 lines
393 B
Python
import subprocess
|
|
import sys
|
|
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)
|