feat: add shared library as git submodule
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
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:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "shared_lib"]
|
||||||
|
path = shared_lib
|
||||||
|
url = https://git.rose-ash.com/coop/shared.git
|
||||||
2
app.py
2
app.py
@@ -1,5 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import path_setup # noqa: F401 # adds shared_lib to sys.path
|
||||||
|
|
||||||
from quart import g
|
from quart import g
|
||||||
|
|
||||||
from shared.factory import create_base_app
|
from shared.factory import create_base_app
|
||||||
|
|||||||
7
path_setup.py
Normal file
7
path_setup.py
Normal 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
1
shared_lib
Submodule
Submodule shared_lib added at 668d9c7df8
Reference in New Issue
Block a user