diff --git a/install/install.py b/install/install.py index fdd6b04..c3e0c7e 100644 --- a/install/install.py +++ b/install/install.py @@ -28,7 +28,8 @@ from shutil import copy2 from calculate.core.server.func import safetyWrapper from calculate.lib.utils.files import (runOsCommand,pathJoin, isMount,process,listDirectory,STDOUT, - checkUtils,readFile,find,copyWithPath) + checkUtils,readFile,find,copyWithPath, + readLinesFile) from calculate.lib.utils.common import (appendProgramToEnvFile, removeProgramToEnvFile, getTupleVersion, cmpVersion,getUserPassword, @@ -350,7 +351,7 @@ class Install: newModuleName = defaultGL curModuleName = map(lambda x:x.strip().rpartition('=')[-1].strip('"\''), filter(lambda x: x.startswith("OPENGL_PROFILE="), - readFile(openGLenv))) + readLinesFile(openGLenv))) curModuleName = curModuleName[-1] if curModuleName else "" if curModuleName == newModuleName: return True