In some distros, LD_LIBRARY_PATH must be explicitly set for tor to work

This commit is contained in:
Micah Lee 2021-10-17 12:16:03 -07:00
parent ee5895bbda
commit 7faa1cde26

View File

@ -354,6 +354,7 @@ class Onion(object):
[self.tor_path, "-f", self.tor_torrc],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
env={"LD_LIBRARY_PATH": os.path.dirname(self.tor_path)},
)
# Wait for the tor controller to start