move venv to shared (#1291)
This commit is contained in:
+2
-2
@@ -193,7 +193,7 @@ async def on_ready():
|
||||
"""Handle bot startup: write guild report, refresh presence, init caches, and start tasks."""
|
||||
GUILD_TOTAL = len(bot.guilds)
|
||||
|
||||
out_path = STORAGE_DIR / "GUILD_REPORT.txt"
|
||||
out_path = STORAGE_DIR / "SREBOT_GUILDS.txt"
|
||||
with out_path.open("w", encoding="utf-8") as f:
|
||||
f.write(f"We have logged in as {bot.user} in the following Guilds:\n\n")
|
||||
for guild in bot.guilds:
|
||||
@@ -334,7 +334,7 @@ async def _refresh_presence():
|
||||
await bot.change_presence(
|
||||
activity=discord.Activity(
|
||||
type=discord.ActivityType.playing,
|
||||
name=f"Playing War Thunder in {GUILD_TOTAL} servers!"
|
||||
name=f"Playing SRE in {GUILD_TOTAL} servers!"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Smoke test for BOT/render_recap.py in --mode player.
|
||||
|
||||
Usage:
|
||||
source .venv/bin/activate && python BOT/tests/smoke_player_recap.py
|
||||
source ../SHARED/.venv/bin/activate && python BOT/tests/smoke_player_recap.py
|
||||
"""
|
||||
|
||||
import sqlite3
|
||||
|
||||
@@ -5,7 +5,7 @@ Runs the renderer end-to-end against the live HC storage volume databases
|
||||
and verifies a PNG lands at the --out path.
|
||||
|
||||
Usage:
|
||||
source .venv/bin/activate && python BOT/tests/smoke_recap.py
|
||||
source ../SHARED/.venv/bin/activate && python BOT/tests/smoke_recap.py
|
||||
"""
|
||||
|
||||
import subprocess
|
||||
|
||||
+1
-1
@@ -1957,7 +1957,7 @@ _REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
SQUADRON_RECAP_CACHE_DIR = STORAGE_DIR / "RECAPS" / "squadrons"
|
||||
PLAYER_RECAP_CACHE_DIR = STORAGE_DIR / "RECAPS" / "players"
|
||||
|
||||
_RECAP_PYTHON_BIN = _REPO_ROOT / ".venv" / "bin" / "python"
|
||||
_RECAP_PYTHON_BIN = _REPO_ROOT.parent / "SHARED" / ".venv" / "bin" / "python"
|
||||
_RECAP_SCRIPT = _REPO_ROOT / "BOT" / "render_recap.py"
|
||||
|
||||
RECAP_TTL_SECONDS = 24 * 60 * 60 # in-progress season TTL (matches web)
|
||||
|
||||
Reference in New Issue
Block a user