Исправлена настройка 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.core.server.func import safetyWrapper
from calculate.lib.utils.files import (runOsCommand,pathJoin, from calculate.lib.utils.files import (runOsCommand,pathJoin,
isMount,process,listDirectory,STDOUT, isMount,process,listDirectory,STDOUT,
checkUtils,readFile,find,copyWithPath) checkUtils,readFile,find,copyWithPath,
readLinesFile)
from calculate.lib.utils.common import (appendProgramToEnvFile, from calculate.lib.utils.common import (appendProgramToEnvFile,
removeProgramToEnvFile, getTupleVersion, removeProgramToEnvFile, getTupleVersion,
cmpVersion,getUserPassword, cmpVersion,getUserPassword,
@ -350,7 +351,7 @@ class Install:
newModuleName = defaultGL newModuleName = defaultGL
curModuleName = map(lambda x:x.strip().rpartition('=')[-1].strip('"\''), curModuleName = map(lambda x:x.strip().rpartition('=')[-1].strip('"\''),
filter(lambda x: x.startswith("OPENGL_PROFILE="), filter(lambda x: x.startswith("OPENGL_PROFILE="),
readFile(openGLenv))) readLinesFile(openGLenv)))
curModuleName = curModuleName[-1] if curModuleName else "" curModuleName = curModuleName[-1] if curModuleName else ""
if curModuleName == newModuleName: if curModuleName == newModuleName:
return True return True

Loading…
Cancel
Save