From 102f63c771d9e3d4d330750dabae4a749ec9f472 Mon Sep 17 00:00:00 2001 From: MCgamin1738 <5355146-adamreynolds152@users.noreply.gitlab.com> Date: Fri, 11 Dec 2020 12:59:48 +0000 Subject: [PATCH] Move session.lock, Database And config.json To Config Folder --- app/classes/shared/helpers.py | 6 +++--- config.json => app/config/config.json | 0 default.json.example => app/config/default.json.example | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename config.json => app/config/config.json (100%) rename default.json.example => app/config/default.json.example (100%) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 89b7ad5d..f2ea0d1b 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -36,10 +36,10 @@ class Helpers: self.webroot = os.path.join(self.root_dir, 'app', 'frontend') self.servers_dir = os.path.join(self.root_dir, 'servers') - self.session_file = os.path.join(self.root_dir, 'session.lock') - self.settings_file = os.path.join(self.root_dir, 'config.json') + self.session_file = os.path.join(self.root_dir, 'app', 'config', 'session.lock') + self.settings_file = os.path.join(self.root_dir, 'app', 'config', 'config.json') - self.db_path = os.path.join(self.root_dir, 'crafty.sqlite') + self.db_path = os.path.join(self.root_dir, 'app', 'config', 'db', 'crafty.sqlite') self.serverjar_cache = os.path.join(self.config_dir, 'serverjars.json') self.passhasher = PasswordHasher() self.exiting = False diff --git a/config.json b/app/config/config.json similarity index 100% rename from config.json rename to app/config/config.json diff --git a/default.json.example b/app/config/default.json.example similarity index 100% rename from default.json.example rename to app/config/default.json.example