We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcf5a4 commit 4865ed0Copy full SHA for 4865ed0
tools/get.py
@@ -66,16 +66,21 @@ def unpack(filename, destination):
66
shutil.move(dirname, rename_to)
67
68
def get_tool(tool):
69
+ sys_name = platform.system()
70
archive_name = tool['archiveFileName']
71
local_path = dist_dir + archive_name
72
url = tool['url']
73
#real_hash = tool['checksum'].split(':')[1]
- ctx = ssl.create_default_context()
74
- ctx.check_hostname = False
75
- ctx.verify_mode = ssl.CERT_NONE
+ if 'CYGWIN_NT' in sys_name:
+ ctx = ssl.create_default_context()
76
+ ctx.check_hostname = False
77
+ ctx.verify_mode = ssl.CERT_NONE
78
if not os.path.isfile(local_path):
79
print('Downloading ' + archive_name);
- urlretrieve(url, local_path, report_progress,context=ctx)
80
81
+ urlretrieve(url, local_path, report_progress,context=ctx)
82
+ else:
83
+ urlretrieve(url, local_path, report_progress)
84
sys.stdout.write("\rDone\n")
85
sys.stdout.flush()
86
else:
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments