MCPcopy Index your code
hub / github.com/MCSLTeam/MCSL2 / deleteOldMCSL2

Function deleteOldMCSL2

MCSL2Lib/ProgramControllers/updateController.py:36–52  ·  view source on GitHub ↗

删除旧的,在更新重启后调用

()

Source from the content-addressed store, hash-verified

34
35
36def deleteOldMCSL2():
37 """删除旧的,在更新重启后调用"""
38 if GlobalMCSL2Variables.devMode:
39 return
40 else:
41 try:
42 remove(f"{sys.executable}.old")
43 except Exception:
44 pass
45 try:
46 remove("MCSL2Lib/verification.so.old")
47 except Exception:
48 pass
49 try:
50 remove("MCSL2Lib/verification.pyd.old")
51 except Exception:
52 pass

Callers 1

MCSL2.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected