Fix Shot_Builder fails to invoke with correct project root directory #8

Merged
Nick Alberelli merged 6 commits from :fix/shot-builder-path-error into master 2023-04-13 16:07:29 +02:00
Showing only changes of commit 25571ec39b - Show all commits

View File

@ -403,7 +403,7 @@ def ensure_loaded_production(context: bpy.types.Context) -> bool:
global _PRODUCTION global _PRODUCTION
addon_prefs = prefs.addon_prefs_get(bpy.context) addon_prefs = prefs.addon_prefs_get(bpy.context)
base_path = Path(addon_prefs.project_root_dir) base_path = Path(addon_prefs.project_root_dir)
production_root = os.path.join(base_path, "pro") production_root = os.path.join(base_path, "pro") #TODO Fix during refactor should use base_path
if is_valid_production_root(Path(production_root)): if is_valid_production_root(Path(production_root)):
logger.debug( logger.debug(
f"loading new production configuration from '{production_root}'.") f"loading new production configuration from '{production_root}'.")