feat: add shared library as git submodule
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-09 23:42:41 +00:00
parent 8f7a15186c
commit 0586fe79cf
4 changed files with 12 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "shared_lib"]
path = shared_lib
url = https://git.rose-ash.com/coop/shared.git

1
app.py
View File

@@ -1,4 +1,5 @@
from __future__ import annotations from __future__ import annotations
import path_setup # noqa: F401 # adds shared_lib to sys.path
from quart import g, request from quart import g, request
from sqlalchemy import select from sqlalchemy import select

7
path_setup.py Normal file
View File

@@ -0,0 +1,7 @@
import sys
import os
# Add the shared library submodule to the Python path
_shared = os.path.join(os.path.dirname(os.path.abspath(__file__)), "shared_lib")
if _shared not in sys.path:
sys.path.insert(0, _shared)

1
shared_lib Submodule

Submodule shared_lib added at 668d9c7df8