mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
doorlockd: make {static,templates}_folder local
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
ae358d403c
commit
bb65e38640
@ -38,9 +38,6 @@ PREFIX = '.'
|
|||||||
root_prefix = join(PREFIX, 'share', 'doorlockd')
|
root_prefix = join(PREFIX, 'share', 'doorlockd')
|
||||||
scripts_prefix = join(root_prefix, 'scripts')
|
scripts_prefix = join(root_prefix, 'scripts')
|
||||||
|
|
||||||
static_folder = abspath(join(root_prefix, 'static'))
|
|
||||||
template_folder = abspath(join(root_prefix, 'templates'))
|
|
||||||
|
|
||||||
__author__ = 'Ralf Ramsauer'
|
__author__ = 'Ralf Ramsauer'
|
||||||
__copyright = 'Copyright (c) Ralf Ramsauer, 2018'
|
__copyright = 'Copyright (c) Ralf Ramsauer, 2018'
|
||||||
__license__ = 'GPLv2'
|
__license__ = 'GPLv2'
|
||||||
@ -256,6 +253,8 @@ if __name__ == '__main__':
|
|||||||
sounds_prefix = join(root_prefix, 'sounds')
|
sounds_prefix = join(root_prefix, 'sounds')
|
||||||
logic = Logic(cfg, sounds_prefix)
|
logic = Logic(cfg, sounds_prefix)
|
||||||
|
|
||||||
|
static_folder = abspath(join(root_prefix, 'static'))
|
||||||
|
template_folder = abspath(join(root_prefix, 'templates'))
|
||||||
webapp_run(cfg, logic, __status__, __version__, template_folder,
|
webapp_run(cfg, logic, __status__, __version__, template_folder,
|
||||||
static_folder)
|
static_folder)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user