From 245742a896cf72bf18941b8d832f01e4ac5afb1f Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke.madsen@geant.org> Date: Mon, 10 Jan 2022 12:53:41 +0100 Subject: [PATCH] add dynamic tempdir to work on non-unix machines --- brian_dashboard_manager/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brian_dashboard_manager/config.py b/brian_dashboard_manager/config.py index dab824b..88cc6cb 100644 --- a/brian_dashboard_manager/config.py +++ b/brian_dashboard_manager/config.py @@ -29,8 +29,10 @@ If the value is a list, dashboard titles within the list should be excluded. import json import jsonschema +import tempfile -STATE_PATH = '/tmp/briandashboardmanager-state.json' + +STATE_PATH = tempfile.gettempdir() + '/briandashboardmanager-state.json' DEFAULT_ORGANIZATIONS = [ { -- GitLab