mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-11 19:05:00 -04:00
Make get_tor_paths work properly now that in linux the tor binaries are bundled too
This commit is contained in:
parent
343a8cccc1
commit
229da0aaab
5 changed files with 72 additions and 33 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue