view mrjunejune/main.py @ 64:a30944e5719e

Added vibe coded markdown to html script since it is useful for me. Updated Dowa so that it can be compiled without dirnet for windows.
author June Park <parkjune1995@gmail.com>
date Tue, 23 Dec 2025 15:18:46 -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()