diff options
author | Micah Lee <micah@micahflee.com> | 2021-10-11 20:45:28 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-10-11 20:45:28 -0700 |
commit | 229da0aaab94ee84e8a0daf6d23251279a639f32 (patch) | |
tree | b25866e4dcd6b3f55f47752e04cd3fc4c70517d4 /desktop/scripts/get-tor-linux.py | |
parent | 343a8cccc13319a8014ad7c12e49a5db52014b54 (diff) | |
download | onionshare-229da0aaab94ee84e8a0daf6d23251279a639f32.tar.gz onionshare-229da0aaab94ee84e8a0daf6d23251279a639f32.zip |
Make get_tor_paths work properly now that in linux the tor binaries are bundled too
Diffstat (limited to 'desktop/scripts/get-tor-linux.py')
-rwxr-xr-x | desktop/scripts/get-tor-linux.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/scripts/get-tor-linux.py b/desktop/scripts/get-tor-linux.py index 4bd9ff13..e47ae03d 100755 --- a/desktop/scripts/get-tor-linux.py +++ b/desktop/scripts/get-tor-linux.py @@ -46,9 +46,12 @@ def main(): ) working_path = os.path.join(root_path, "build", "tor") tarball_path = os.path.join(working_path, tarball_filename) + dist_path = os.path.join(root_path, "src", "onionshare", "resources", "tor") + + # Make sure dirs exist + if not os.path.exists(working_path): + os.makedirs(working_path, exist_ok=True) - # Make sure the dist path exists - dist_path = os.path.join(working_path, "dist") if not os.path.exists(dist_path): os.makedirs(dist_path, exist_ok=True) |