Skip to content

Commit 47e03d0

Browse files
committed
Correctly get settings.WINDOW.class
1 parent 98cb685 commit 47e03d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demosys/view/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def run(manager=None):
2222
2323
:param manager: The effect manager to use
2424
"""
25-
window_cls_name = getattr(settings.WINDOW, 'class', 'demosys.context.glfw.GLFW_Window')
25+
window_cls_name = settings.WINDOW.get('class', 'demosys.context.glfw.GLFW_Window')
26+
print("window class", window_cls_name)
2627
window_cls = module_loading.import_string(window_cls_name)
2728
window = window_cls()
2829

0 commit comments

Comments
 (0)