Mercurial
view mrjunejune/python_server.py @ 118:249881ceff7b
[PostDog] Updated some core logic. Will create a bookmark for postdog until the launch as this is annoying to deal with.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 07 Jan 2026 13:24:38 -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()