Browse Source

Fix composite value getting from xorg.conf.

develop
Mike Hiretsky 11 years ago
parent
commit
79764a7b10
  1. 9
      pym/cl_vars_share.py

9
pym/cl_vars_share.py

@ -358,16 +358,17 @@ class varsShare:
lineCompositeTmp = ""
lineComposite = ""
for line in confLines:
line = line.strip()
if flagStartExtensions:
if 'EndSection' in line:
if line.startswith('EndSection'):
lineComposite = lineCompositeTmp
break
elif 'Section' in line:
elif line.startswith('Section'):
break
if 'Option' in line and '"Composite"' in line:
if line.startswith('Option') and '"Composite"' in line:
lineCompositeTmp = line
else:
if '"Extensions"' in line and 'Section' in line:
if '"Extensions"' in line and line.startswith('Section'):
flagStartExtensions = True
if lineComposite:
listOpt = filter(lambda x: x.strip(), lineComposite.split('"'))

Loading…
Cancel
Save