mirror of
https://github.com/TriM-Organization/Linglun-Converter.git
synced 2025-06-04 19:25:22 +00:00
修复配置文件读写问题。
This commit is contained in:
parent
782b88e3c4
commit
c4b1202523
32
clean_pycache.py
Normal file
32
clean_pycache.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
from rich.console import Console
|
||||||
|
from rich.progress import track
|
||||||
|
|
||||||
|
console = Console()
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
with console.status("正在搜寻可清理之文件"):
|
||||||
|
egg_info: list = []
|
||||||
|
for file in os.listdir():
|
||||||
|
if file.endswith((".egg-info", ".spec")):
|
||||||
|
egg_info.append(file)
|
||||||
|
console.print(file)
|
||||||
|
|
||||||
|
pycache: list = []
|
||||||
|
for dirpath, dirnames, filenames in os.walk("./"):
|
||||||
|
for dirname in dirnames:
|
||||||
|
if dirname == "__pycache__":
|
||||||
|
pycache.append(fn := os.path.join(dirpath, dirname))
|
||||||
|
console.print(fn)
|
||||||
|
for file in track(
|
||||||
|
["build", "dist", "logs", "log", *egg_info, *pycache], description="正在清理"
|
||||||
|
):
|
||||||
|
if os.path.isdir(file) and os.access(file, os.W_OK):
|
||||||
|
shutil.rmtree(file)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
@ -76,7 +76,7 @@ BLACK = (18, 17, 16) # 121110
|
|||||||
|
|
||||||
|
|
||||||
__appname__ = "伶伦转换器"
|
__appname__ = "伶伦转换器"
|
||||||
__version__ = "WXGUI 1.2.1"
|
__version__ = "WXGUI 1.2.1.1"
|
||||||
__zhver__ = "WX图形界面 初代次版一编"
|
__zhver__ = "WX图形界面 初代次版一编"
|
||||||
|
|
||||||
|
|
||||||
@ -1525,7 +1525,7 @@ class ConvertPagePanel(wx.Panel):
|
|||||||
size,
|
size,
|
||||||
total_delay,
|
total_delay,
|
||||||
(
|
(
|
||||||
"\n指令数量:{}".format(cmd_num)
|
"\n指令数量:{}".format(cmd_num) # type: ignore
|
||||||
if self.m_playerChoice_choice2.GetSelection() == 0
|
if self.m_playerChoice_choice2.GetSelection() == 0
|
||||||
else ""
|
else ""
|
||||||
),
|
),
|
||||||
|
@ -30,7 +30,7 @@ def unpack_llc_pack(from_dist: str, raise_error: bool = True):
|
|||||||
== hashlib.pbkdf2_hmac(
|
== hashlib.pbkdf2_hmac(
|
||||||
"sha256",
|
"sha256",
|
||||||
md5_value + packed_bytes,
|
md5_value + packed_bytes,
|
||||||
salt(hashlib.sha256(brotli.__version__)),
|
salt(hashlib.sha256(str(brotli.__version__).encode("gb18030"))),
|
||||||
16,
|
16,
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user