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 2161c58a4a
commit 6bf839f826
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

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