|
发表于 2024-10-23 15:41:37
|
显示全部楼层
管用,解了一个VIP
写了个python脚本的,拿走
import os
import subprocess
script_directory = os.path.dirname(os.path.abspath(__file__))
decrypt_exe_path = os.path.join(script_directory, 'decrypt.exe')
directory = os.path.join(script_directory, 'i3c')
# decrypt_exe_path = "decrypt.exe -ieee"
valid_extensions = ['.sv', '.svi', '.pkg', '.vi', '.v', '.vih', '.h']
for root, dirs, files in os.walk(directory):
for file in files:
file_path = os.path.join(root, file)
if os.path.isfile(file_path):
extension = os.path.splitext(file_path)[1]
if extension in valid_extensions:
print(file_path)
decrypted_filepath = file_path + ".decrypted"
subprocess.run([decrypt_exe_path, '-ieee', file_path])
os.remove(file_path)
os.rename(decrypted_filepath, file_path)
|
|