else:if(os.path.isfile(getWindowsDirectory(path)+"/CLASSES.DAT")):return_WIN_MEreturn_WIN_9xdefgetWindowsDirectory(path):result,code=runProcess(["find",path,"-xdev","-iname","explorer.exe","-print","-quit"])if(result.decode("utf-8")==""):returnNonematches=result.decode("utf-8").splitlines()#WARNING: ONLY CONSIDERING FIRST MATCH#TODO: Improvereturnos.path.dirname(os.path.realpath(matches[0]))defgetUserProfiles(path):version=getWindowsVersion(path)ifversion<_WIN_XP:profilepath=getWindowsDirectory(path)+"/Profiles"if(os.path.exists(profilepath)):return[profilepath+profforprofinos.listdir(profilepath)]return[]elifversion==_WIN_XP:profilepath=path+"/Documents and Settings"if(os.path.exists(profilepath)):return[profilepath+profforprofinos.listdir(profilepath)]return[]else:profiles=[]profilepath=path+"/Users"if(os.path.exists(profilepath)):foreleminos.listdir(profilepath):if(os.path.isdir(profilepath+"/"+elem)):profiles.append(profilepath+"/"+elem)returnprofiles