From 60f30f070ab1a825edc5b68eed1938482febf60b Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 30 Oct 2022 01:36:00 +0200 Subject: [PATCH] cwd --- cashu/tor/tor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu/tor/tor.py b/cashu/tor/tor.py index b6666e1..51986f7 100755 --- a/cashu/tor/tor.py +++ b/cashu/tor/tor.py @@ -45,6 +45,7 @@ class TorProxy: cmd = ["timeout", f"{self.keep_alive}"] + cmd self.tor_proc = subprocess.Popen( cmd, + cwd=os.path.dirname(self.tor_path()), shell=False, close_fds=True, stdout=subprocess.PIPE,