From f5a9363ff7a60c6b48d282f79c565469a514a145 Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Tue, 29 Oct 2024 11:09:54 +0000 Subject: [PATCH] move presets example json to assets to prevent comiled code running issues --- presets.example.json => assets/presets.example.json | 0 utils/text_to_mic.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename presets.example.json => assets/presets.example.json (100%) diff --git a/presets.example.json b/assets/presets.example.json similarity index 100% rename from presets.example.json rename to assets/presets.example.json diff --git a/utils/text_to_mic.py b/utils/text_to_mic.py index 7450ca1..3257eab 100644 --- a/utils/text_to_mic.py +++ b/utils/text_to_mic.py @@ -1299,7 +1299,7 @@ Please also make sure you read the Terms of use and licence statement before usi def load_presets(self): """Load presets from the JSON file, copying from example if necessary.""" presets_path = Path("config/presets.json") - example_path = self.resource_path("presets.example.json") # Path for the example file + example_path = self.resource_path("assets/presets.example.json") # Path for the example file # Check if presets.json exists, and if not, copy presets.example.json to config if not presets_path.exists():