From 8cedf72d2c9cc911c66aba185f269ceb0ecb4547 Mon Sep 17 00:00:00 2001 From: Bigsk Date: Wed, 18 Nov 2020 15:49:12 +0800 Subject: [PATCH] Some Small Updates :) --- core.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/core.py b/core.py index a4a5c2c..b3e1aee 100644 --- a/core.py +++ b/core.py @@ -137,22 +137,7 @@ class GMCLCore(object): else: return "Error:Wrong Auth Way." def SetRecomMem(self): - if(platform.system()=="Windows"): - path="C:/" - elif(platform.system()=="Linux"): - path="/" - else: - path="/" - i=0 - for ipath in os.listdir(Path): - FullDir=os.path.join(path,ipath) - if(os.path.isfile(FullDir)): - if("javaw.exe" in os.path.split(FullDir)[1]): - return FullDir - i+=1 - if(i==1): - break - def SetRecomMem(self): + '''The recommendation memory value set function''' self.__Memory = float(psutil.virtual_memory().free / 1024 ** 3) * 0.8 def SetJavaPath(self,path): if(path==None):