|
|
|
@ -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
|
|
|
|
|