Commit 9d0c7351 authored by Hartmut Goebel's avatar Hartmut Goebel
Browse files

If backend is not specified (or no config file read), try to guess.

parent 0c2f0181
......@@ -272,6 +272,19 @@ if __name__ == '__main__':
config.get('logging').get('level','none')
grafics = config.get('grafics')
if grafics is None:
# backend not specified (or not config file), try to guess
try:
import pyglet
grafics = 'pyglet'
except:
try:
import clutter
grafics = 'clutter'
except:
raise SystemExit('Sorry, not supported rendering backend found.')
config['grafics'] = grafics
if grafics == 'pyglet':
from cadre.extern import pygletreactor
pygletreactor.install()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment