view mrjunejune/python_server.py @ 71:75de5903355c

Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
author June Park <parkjune1995@gmail.com>
date Sun, 28 Dec 2025 20:34:22 -0800
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()