削除データの追加を無効

This commit is contained in:
suti7yk5032 2024-10-05 11:03:42 +09:00
parent af18cae3ff
commit 5604c7a2bb
2 changed files with 3 additions and 1 deletions

View file

@ -45,7 +45,7 @@ if not os.path.isfile(client_config_path):
"erase_data": { "erase_data": {
"example": { "example": {
"process_name": "example.exe", "process_name": "example.exe",
"dir_path": "C:\\Users\\example\\AppData\\Local\\example" "dir_path": "example"
} }
}, },
"pc_uuid": "", "pc_uuid": "",

View file

@ -134,6 +134,7 @@ class App(tkinter.Tk):
steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam") steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam")
ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts") ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts")
riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client") riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client")
"""
for i in client_config['erase_data'].keys(): for i in client_config['erase_data'].keys():
if i == 'example': if i == 'example':
pass pass
@ -141,6 +142,7 @@ class App(tkinter.Tk):
erase_process_name = client_config['erase_data'][i]['process_name'] erase_process_name = client_config['erase_data'][i]['process_name']
erase_dir_path = client_config['erase_data'][i]['dir_path'] erase_dir_path = client_config['erase_data'][i]['dir_path']
erase_del = self.delete_appdata(process_name=erase_process_name, dir_path=erase_dir_path) erase_del = self.delete_appdata(process_name=erase_process_name, dir_path=erase_dir_path)
"""
else: else:
print("削除処理をスキップ。") print("削除処理をスキップ。")