mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-30 10:47:58 +03:00
Upgrade python 3.7 to 3.8 (Windows x64)
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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! ====")
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user