-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
27 lines (22 loc) · 938 Bytes
/
config.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
'''
Software configuration. It is an executable Python file and is
imported for access to the variables.
'''
import os.path
# Identity verification through Mozilla Persona requires the hostname to
# be sent in the checking request.
import platform
if platform.node() == 'pyweb':
hostname = '16plus.jsb.be'
DATA_PATH = os.path.expanduser('~') + '/apps/16plus/data'
repository_latest = os.path.expanduser('~') + '/apps/16plus/16plus.jsb.be-latest'
else:
hostname = 'localhost:1616'
if platform.node() == 'lithium':
DATA_PATH = os.path.expanduser('~') + '/Desktop/16plus.jsb.be-stable/data'
repository_latest = os.path.expanduser('~') + '/Desktop/16plus.jsb.be-latest'
else:
DATA_PATH = os.path.expanduser('~') + '/Documents/Projects/Python/16plus.jsb.be/data'
repository_latest = None
REGISTRATIONS_PATH = DATA_PATH + '/registrations'
JSON_PATH = DATA_PATH + '/json'