fix(rdesign): run runner startup unconditionally (Scribus doesn't set __main__)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
aacbcdaddf
commit
3a443a0d09
|
|
@ -320,7 +320,7 @@ def run_socket_server():
|
||||||
print(f"[runner] Socket error: {e}", file=sys.stderr)
|
print(f"[runner] Socket error: {e}", file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
# Always run — Scribus --python-script doesn't set __name__ to "__main__"
|
||||||
_ensure_dirs()
|
_ensure_dirs()
|
||||||
print("[runner] Scribus bridge runner starting...")
|
print("[runner] Scribus bridge runner starting...")
|
||||||
# Run socket server in a thread so Scribus event loop can continue
|
# Run socket server in a thread so Scribus event loop can continue
|
||||||
|
|
@ -329,8 +329,6 @@ if __name__ == "__main__":
|
||||||
print("[runner] Socket server thread started")
|
print("[runner] Socket server thread started")
|
||||||
|
|
||||||
# Keep the script alive
|
# Keep the script alive
|
||||||
# When run via --python-script, Scribus will execute this then exit
|
|
||||||
# We need to keep it running for the socket server
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue