This repository has been archived by the owner on Jul 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
59 lines (46 loc) · 1.78 KB
/
settings.py
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
'''
A note about settings:
The number sign: "#" is the mark to denote a line is a comment.
By commenting out lines, you can turn them off and return them to the defaults.
This is Python, dont add whitespace that isnt there, use proper capitalization.
In general, follow the examples.
'''
#Set one or more of these to True to get more units of measurement.
#If you disable one of these, their units wont go away until
#you delete your database file.
METRIC = True
IMPERIAL = False
UNITEDSTATES = False
RESOURCES_DIR = "resources/"
TEMPLATE_DIR = RESOURCES_DIR+"templates/"
TRAY_ICON = RESOURCES_DIR+"bottle.png"
#Database Path should be an SQL URI. SQLite is fastest so we use it in memory by default.
#See http://www.sqlalchemy.org/docs/05/dbengine.html#create-engine-url-arguments to use a different database.
DATABASE_PATH = "sqlite:///:memory:"
#Database Filename is the name of the python file we'll write to every so often and read in on startup.
#This gives us free forwards compatibility, plus a (mostly) human readable database file.
DATABASE_FILENAME = "database.py"
DATABASE_BACKUP_DIR = "database_backups/"
DEBUG = False
#Time between writing data to disk In milliseconds
WRITE_DATA_DELAY = 1000*60*5
SPLASH_MESSAGE_DELAY = 0.333
#Disables splash screen entirely.
NOSPLASH = True
#10 hours past 8am, 6pm
PURITAN_TIME = 10
#4 hours past 8am, 12 noon
MODERN_TIME = 4
#A sure sign of alcoholism is when a person is drunk before noon. Or 6pm.
DRUNK_BEFORE_NOON = PURITAN_TIME
LOADING_MESSAGES = (
"Extruding Mesh Terrain",
"Balancing Domestic Coefficients",
"Inverting Career Ladder",
"Calculating Money Supply",
"Normalizing Social Network",
"Reticulating Splines",
"Adjusting Emotional Weights",
"Calibrating Personality Matrix",
"Inserting Chaos Generator",
)