view mrjunejune/main.py @ 273:e02e2036ef84 default tip

add Layer 2 JRPG component system Add reusable content and window modals, an isolated component sandbox, shared cyberpunk scroll areas, production-safe cache freshness, and server-rendered JRPG panel state. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Sat, 08 Aug 2026 02:08:08 -0700
parents d2bb317e01db
children
line wrap: on
line source

from cffi import FFI
import os

ffi = FFI()
ffi.cdef("void start_server(void);")

# Bazel runs binaries from a sandbox, so use runfiles to locate the .so
import pathlib
runfiles_dir = pathlib.Path(__file__).parent
libpath = runfiles_dir / "mrjunejune_server_so.so"

C = ffi.dlopen(str(libpath))
C.start_server()