From 77c66880c1da0ba4ce1b81cf31e245de9e22c809 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:44:17 +0200 Subject: [PATCH] make format --- cashu/tor/tor.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cashu/tor/tor.py b/cashu/tor/tor.py index cba2e02..766fcf2 100755 --- a/cashu/tor/tor.py +++ b/cashu/tor/tor.py @@ -33,7 +33,13 @@ class TorProxy: def run_daemon(self): self.tor_proc = subprocess.Popen( - [f"{self.tor_path()}", "--defaults-torrc", f"{self.tor_config_path()}"], + [ + "timeout", + "20", + f"{self.tor_path()}", + "--defaults-torrc", + f"{self.tor_config_path()}", + ], shell=False, close_fds=True, stdout=subprocess.PIPE, @@ -55,7 +61,7 @@ class TorProxy: def tor_path(self): PATHS = { - "Windows": os.path.join(self.base_path, "bundle", "win", "tor.exe"), + "Windows": os.path.join(self.base_path, "bundle", "win", "Tor", "tor.exe"), "Linux": os.path.join(self.base_path, "bundle", "linux", "tor"), "Darwin": os.path.join(self.base_path, "bundle", "mac", "tor"), }