blob: b4650180d6b74983f004b383548dbf6cc1706eed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Package definition for the extras/display directory
#
# Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
from . import display
def load_config(config):
return display.load_config(config)
def load_config_prefix(config):
if not config.has_section("display"):
raise config.error(
"A primary [display] section must be defined in printer.cfg "
"to use auxiliary displays"
)
name = config.get_name().split()[-1]
if name == "display":
raise config.error(
"Section name [display display] is not valid. "
"Please choose a different postfix."
)
return display.load_config(config)
|