Test result of Martin's script, on a machine that has had fglrx added from synaptic:
:~/Downloads$ python test.py
main_name x86_64-linux-gnu_gl_conf other_name i386-linux-gnu_gl_conf other_alt <NvidiaDetector.alternatives.Alternatives object at 0x7f97c22cf4d0>
oa_name type <type 'str'> value /usr/lib/fglrx/alt_ld.so.conf
:~/Downloads$
Test result of Martin's script, on a machine that has had fglrx added from synaptic: linux-gnu_ gl_conf other_name i386-linux- gnu_gl_ conf other_alt <NvidiaDetector .alternatives. Alternatives object at 0x7f97c22cf4d0> fglrx/alt_ ld.so.conf
:~/Downloads$ python test.py
main_name x86_64-
oa_name type <type 'str'> value /usr/lib/
:~/Downloads$