mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 23:15:18 -04:00
Find the proper tor binary in onionshare-cli for macOS
This commit is contained in:
parent
68347039c9
commit
d9153758cd
2 changed files with 24 additions and 11 deletions
|
@ -328,6 +328,10 @@ class Onion(object):
|
|||
f.write(self.settings.get("tor_bridges_use_custom_bridges"))
|
||||
f.write("\nUseBridges 1")
|
||||
|
||||
# Make sure the tor path is accurate
|
||||
if not os.path.exists(self.tor_path):
|
||||
raise BundledTorNotSupported(f"Cannot find tor binary: {self.tor_path}")
|
||||
|
||||
# Execute a tor subprocess
|
||||
start_ts = time.time()
|
||||
if self.common.platform == "Windows":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue