mirror of
https://github.com/onionshare/onionshare.git
synced 2025-11-30 02:56:50 -05:00
fix: gnupg home default works on windows
This commit is contained in:
parent
da9274e43b
commit
21eceddd82
1 changed files with 6 additions and 9 deletions
|
|
@ -1,15 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
import hashlib
|
||||
import inspect
|
||||
import os
|
||||
from re import M
|
||||
import sys
|
||||
import hashlib
|
||||
import shutil
|
||||
import subprocess
|
||||
import requests
|
||||
import sys
|
||||
from re import M
|
||||
|
||||
import click
|
||||
import tempfile
|
||||
import gnupg
|
||||
import requests
|
||||
|
||||
torbrowser_latest_url = (
|
||||
"https://aus1.torproject.org/torbrowser/update_3/release"
|
||||
|
|
@ -329,8 +329,7 @@ def main(platform):
|
|||
platform_filename,
|
||||
expected_platform_sig,
|
||||
) = get_latest_tor_version_urls(platform)
|
||||
tmpdir = tempfile.TemporaryDirectory()
|
||||
gpg = gnupg.GPG(gnupghome=tmpdir.name)
|
||||
gpg = gnupg.GPG()
|
||||
torkey = gpg.import_keys_file(
|
||||
os.path.join(root_path, "scripts", "tor-browser-devs.gpg")
|
||||
)
|
||||
|
|
@ -351,8 +350,6 @@ def main(platform):
|
|||
else:
|
||||
click.echo("invalid platform")
|
||||
|
||||
tmpdir.cleanup()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue