From 753653b4df62723b82d32799825135822886eac7 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 3 Sep 2026 16:20:23 +0200 Subject: refactor(node): platform abstraction for Windows portability (W1-W2-W5-W6-W7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platform directories, signal handling, chmod guards, ffmpeg discovery, and platform-conditional CLI messages — all testable on Linux. See docs/WINDOWS-PORT.md §5 for the plan these implement. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-node/src/meshbay_node/hub_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-node/src/meshbay_node/hub_client.py') diff --git a/packages/meshbay-node/src/meshbay_node/hub_client.py b/packages/meshbay-node/src/meshbay_node/hub_client.py index 1ed1662..1e975fa 100644 --- a/packages/meshbay-node/src/meshbay_node/hub_client.py +++ b/packages/meshbay-node/src/meshbay_node/hub_client.py @@ -26,6 +26,7 @@ import httpx import jwt from meshbay_node.keystore import NodeKeys +from meshbay_node.platform import config_dir log = logging.getLogger(__name__) @@ -61,7 +62,7 @@ class HubSession: class HubConfig: hub_url: str username: str - cache_dir: Path = field(default_factory=lambda: Path.home() / ".config" / "meshbay") + cache_dir: Path = field(default_factory=config_dir) @property def hub_pk_cache_path(self) -> Path: -- cgit v1.2.3