fix: add missing shutil import for Matrix E2EE setup

Cherry-picked from PR #5136 by thakoreh.
setup_gateway() uses shutil.which('uv') at line 2126 but shutil was
never imported at module level, causing NameError during Matrix E2EE
auto-install. Adds top-level import and regression test.
This commit is contained in:
thakoreh 2026-04-05 10:43:52 -07:00 committed by Teknium
parent 70f798043b
commit 914f7461dc
2 changed files with 32 additions and 0 deletions

View file

@ -14,6 +14,7 @@ Config files are stored in ~/.hermes/ for easy access.
import importlib.util
import logging
import os
import shutil
import sys
from pathlib import Path
from typing import Optional, Dict, Any