fix: resolve protobuf version conflict and stabilize API startup (v5.1b4)

This commit is contained in:
2026-04-17 21:10:49 -03:00
parent f30e8a991f
commit 5f01d0c757
6 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
__version__ = "5.1b3"
__version__ = "5.1b4"
+6
View File
@@ -57,6 +57,12 @@ def debug_api(port=8048, config=None):
def start_server(port=8048, config=None):
try:
import sys
# Ensure project root is in path for the child process
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if base_dir not in sys.path:
sys.path.insert(0, base_dir)
from connpy.grpc.server import serve
conf = config or configfile()
server = serve(conf, port=port, debug=False)
View File
View File