Upgrade python 3.7 to 3.8 (Windows x64)

This commit is contained in:
remittor
2021-11-19 14:48:35 +03:00
parent 07a19bf49a
commit 8a6f10a012
163 changed files with 562 additions and 149 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import platform
fn_dir = './'
for filename in [fn for fn in os.listdir(fn_dir) if fn.split(".")[-1] in ['pyd']]:
#print(filename)
with open(filename, "rb") as file:
buf = file.read()
buf = buf.replace(b'libcrypto-1_1-x64.dll\0', b'libcrypto-1_1.dll\0\0\0\0\0')
with open(filename, "wb") as file:
file.write(buf)
print("==== Modules patched! ====")