From a2309e7925706ae4c7b6c55fa17028b98b152898 Mon Sep 17 00:00:00 2001 From: jenz Date: Tue, 21 Feb 2023 15:07:17 +0100 Subject: [PATCH] fixed dir --- AutismBotIngame/python/ingamefollowct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutismBotIngame/python/ingamefollowct.py b/AutismBotIngame/python/ingamefollowct.py index 9b3a1ea9..0eb9f899 100644 --- a/AutismBotIngame/python/ingamefollowct.py +++ b/AutismBotIngame/python/ingamefollowct.py @@ -142,7 +142,7 @@ if __name__ == '__main__': buffer_size = 4096 #potentially not large enough? connection_issue_counter = 0; #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/maps"], stdout=subprocess.PIPE).communicate()[0].decode().split("\t")[0] + 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 if maps_folder_size.endswith("G"): maps_folder_size = float(maps_folder_size[:-1])