1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +01:00

Rename config.cfg -> doorlockd.cfg

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-09-05 19:26:38 +00:00
parent 3e8d8a98e3
commit c2c6e00651
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import logging
import sys import sys
from enum import Enum from enum import Enum
from os.path import join
from random import sample from random import sample
from serial import Serial from serial import Serial
from subprocess import Popen from subprocess import Popen
@ -35,6 +36,9 @@ from flask_wtf import FlaskForm
from wtforms import PasswordField, StringField, SubmitField from wtforms import PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired, Length from wtforms.validators import DataRequired, Length
SYSCONFDIR = '.'
PREFIX = '.'
__author__ = 'Ralf Ramsauer' __author__ = 'Ralf Ramsauer'
__copyright = 'Copyright (c) Ralf Ramsauer, 2018' __copyright = 'Copyright (c) Ralf Ramsauer, 2018'
__license__ = 'GPLv2' __license__ = 'GPLv2'
@ -56,7 +60,7 @@ default_binddn = 'cn=%s,ou=people,dc=binary-kitchen,dc=de'
html_title = 'Binary Kitchen Doorlock (%s - v%s)' % (__status__, __version__) html_title = 'Binary Kitchen Doorlock (%s - v%s)' % (__status__, __version__)
webapp = Flask(__name__) webapp = Flask(__name__)
webapp.config.from_pyfile('config.cfg') webapp.config.from_pyfile(join(SYSCONFDIR, 'doorlockd.cfg'))
socketio = SocketIO(webapp, async_mode='threading') socketio = SocketIO(webapp, async_mode='threading')
Bootstrap(webapp) Bootstrap(webapp)
serial_port = webapp.config.get('SERIAL_PORT') serial_port = webapp.config.get('SERIAL_PORT')