a1abe159fa
Add deploy/manage.sh bootstrap for git.bz121.com/dekun/crypto_okx and point docs at this repo. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
780 B
Python
24 lines
780 B
Python
"""Repository path helpers for lib/ assets."""
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
LIB_DIR = Path(__file__).resolve().parent
|
|
REPO_ROOT = LIB_DIR.parent
|
|
|
|
|
|
def strategy_templates_dir(repo_root: str | Path | None = None) -> str:
|
|
root = Path(repo_root) if repo_root is not None else REPO_ROOT
|
|
return str(root / "lib" / "strategy" / "templates")
|
|
|
|
|
|
def embed_templates_dir(repo_root: str | Path | None = None) -> str:
|
|
root = Path(repo_root) if repo_root is not None else REPO_ROOT
|
|
return str(root / "lib" / "instance" / "templates")
|
|
|
|
|
|
def common_static_dir(repo_root: str | Path | None = None) -> str:
|
|
root = Path(repo_root) if repo_root is not None else REPO_ROOT
|
|
return str(root / "lib" / "common" / "static")
|
|
|