-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.py
More file actions
62 lines (50 loc) · 1.29 KB
/
settings.py
File metadata and controls
62 lines (50 loc) · 1.29 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import logging
from apps import get_apps
try:
from local_settings import LOGLEVEL
except ImportError:
LOGLEVEL = logging.INFO
try:
from local_settings import ROTATION
except ImportError:
ROTATION = 270
try:
from local_settings import FONT
except ImportError:
FONT = "/usr/share/fonts/truetype/dejava/DejaVuSans.ttf"
try:
from local_settings import BOLD_FONT
except ImportError:
BOLD_FONT = "/usr/share/fonts/truetype/dejava/DejaVuSans-Bold.ttf"
try:
from local_settings import MONOSPACE_FONT
except ImportError:
MONOSPACE_FONT = "/usr/share/fonts/truetype/dejava/DejaVuSansMono.ttf"
try:
from local_settings import APPS
except ImportError:
APPS = get_apps()
try:
from local_settings import TIMEZONE
except ImportError:
TIMEZONE = None
try:
from local_settings import BACKGROUND
except ImportError:
BACKGROUND = "images/wallpaper.png"
try:
from local_settings import TEXT_COLOR
except ImportError:
TEXT_COLOR = "white"
try:
from local_settings import BACKGROUND_COLOR
except ImportError:
BACKGROUND_COLOR = "black"
try:
from local_settings import SPLASH_IMAGE
except ImportError:
SPLASH_IMAGE = "images/raspberry-pi.png"
try:
from local_settings import SAVE_SCREENSHOTS
except ImportError:
SAVE_SCREENSHOTS = False