Исправлена настройка opengl

master3.3
Mike khiretskiy 11 years ago
parent 6168872c2a
commit dc4178009e

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

Loading…
Cancel
Save