Files
mtusi2026lab2/scripts/setup.py
T
MagNat521 a7b10a1d56
Skeleton contracts / contracts (pull_request) Blocked by required conditions
ЛР 2 — БВТ2302 — Макаренко — PostgreSQL и сессии
2026-12-04 11:58:32 +03:00

9 lines
287 B
Python

import secrets
from pathlib import Path
target = Path(__file__).resolve().parents[1] / ".env"
if not target.exists():
with target.open("x", encoding="utf-8") as output:
for name in ("DB_PASSWORD","S3_PASSWORD"):
output.write(f"{name}={secrets.token_hex(32)}\n")