From 1ae8fdfb6695971e4ad84f8a1f10dbee3bdb03ec Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 22 Feb 2023 19:12:58 +0100 Subject: [PATCH] cleaning up left over bz2 files --- AutismBotIngame/python/ingamefollowct.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AutismBotIngame/python/ingamefollowct.py b/AutismBotIngame/python/ingamefollowct.py index 0eb9f899..f4c6497a 100644 --- a/AutismBotIngame/python/ingamefollowct.py +++ b/AutismBotIngame/python/ingamefollowct.py @@ -141,6 +141,8 @@ if __name__ == '__main__': external_port_messages = data_ports['chat_external_port'] buffer_size = 4096 #potentially not large enough? connection_issue_counter = 0; + #deleting left over bz2 files because they give missing map issue + subprocess.run([f"rm /home/{whoami}/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Counter-Strike\ Source/cstrike/download/maps/*.bz2"], shell=True) #deleting maps maps_folder_size = subprocess.Popen(["du", "-sh", f"/home/{whoami}/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/Counter-Strike Source/cstrike/download/maps"], stdout=subprocess.PIPE).communicate()[0].decode().split("\t")[0] #deleting when maps folder larger than 150GB