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):