Blender Kitsu: Shot Builder move config to standard directory #88
@ -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.
|
||||
|
@ -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}'.")
|
||||
|
Loading…
Reference in New Issue
Block a user