From e6683118ef11d4e4766d2703a9bcfc457f3ba2f9 Mon Sep 17 00:00:00 2001 From: Nick Alberelli Date: Mon, 19 Jun 2023 10:19:40 -0400 Subject: [PATCH] Blender Kitsu: Shot Builder standardize config directory --- .../addons/blender_kitsu/shot_builder/docs/README.md | 2 +- scripts-blender/addons/blender_kitsu/shot_builder/project.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts-blender/addons/blender_kitsu/shot_builder/docs/README.md b/scripts-blender/addons/blender_kitsu/shot_builder/docs/README.md index f6bdb7d1..639bad4a 100644 --- a/scripts-blender/addons/blender_kitsu/shot_builder/docs/README.md +++ b/scripts-blender/addons/blender_kitsu/shot_builder/docs/README.md @@ -200,7 +200,7 @@ configuration file is found. Project-specific settings are not configured/stored but in this configuration file. The add-on will look in the root of the production repository to locate the -main configuration file `shot-builder/config.py`. This file contains general +main configuration file `config/shot-builder/config.py`. This file contains general settings about the production, including: * The name of the production for reporting back to the user when needed. diff --git a/scripts-blender/addons/blender_kitsu/shot_builder/project.py b/scripts-blender/addons/blender_kitsu/shot_builder/project.py index cad3ffd5..7efc0548 100644 --- a/scripts-blender/addons/blender_kitsu/shot_builder/project.py +++ b/scripts-blender/addons/blender_kitsu/shot_builder/project.py @@ -403,7 +403,9 @@ def ensure_loaded_production(context: bpy.types.Context) -> bool: global _PRODUCTION addon_prefs = prefs.addon_prefs_get(bpy.context) base_path = Path(addon_prefs.project_root_dir) - production_root = os.path.join(base_path, "pro") #TODO Fix during refactor should use base_path + production_root = os.path.join( + base_path, "pro", "config" + ) # TODO Fix during refactor should use base_path if is_valid_production_root(Path(production_root)): logger.debug( f"loading new production configuration from '{production_root}'.") -- 2.30.2