Skip to content
Snippets Groups Projects
Commit 62c02bab authored by Robert Goldmann's avatar Robert Goldmann
Browse files

moved configs to config folder

parent 9e484f91
No related branches found
No related tags found
No related merge requests found
/Pipfile.lock
/settings.json
/pageSettings.json
/pageSettings_backup.json
/boardGames.json
/config/settings.json
/config
.idea/
/*.ics
File moved
File moved
......@@ -7,6 +7,7 @@ from flask_socketio import SocketIO
from blueprints import Routes
from logic import Constants
from logic.Constants import CONFIG_DIR
from logic.page.PageManager import PageManager
from logic.service.ServiceRegistry import ServiceRegistry
from logic.tile.TileScheduler import TileScheduler
......@@ -16,7 +17,8 @@ LOGGER = DefaultLogger().create_logger_if_not_exists(Constants.APP_NAME)
class DashboardLeaf(FlaskBaseApp):
def __init__(self, appName: str):
super().__init__(appName, os.path.dirname(__file__), LOGGER, serveRobotsTxt=True)
super().__init__(appName, os.path.dirname(__file__), LOGGER, serveRobotsTxt=True,
settingsPath=os.path.join(CONFIG_DIR, 'settings.json'))
self._tileService = None
self._pageManager = None
ServiceRegistry.get_instance()
......@@ -35,7 +37,7 @@ class DashboardLeaf(FlaskBaseApp):
self._tileScheduler.emit_from_cache()
self._tileScheduler = TileScheduler(socketio)
self._pageManager = PageManager(Constants.ROOT_DIR, self._tileScheduler, app)
self._pageManager = PageManager(Constants.CONFIG_DIR, self._tileScheduler, app)
self._tileScheduler.run()
return app
......
......@@ -4,6 +4,8 @@ from TheCodeLabs_BaseUtils.Color import Color
APP_NAME = 'DashboardLeaf'
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
CONFIG_DIR = os.path.join(ROOT_DIR, 'config')
# colors
RED = Color(230, 76, 60)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment