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