Free Motion Capture for Everyone πβ¨
TypeScript
Auto find blender path on mac (#369)
philipqueen1bb7268bfb68
diff --git a/freemocap/core_processes/export_data/blender_stuff/get_best_guess_of_blender_path.py b/freemocap/core_processes/export_data/blender_stuff/get_best_guess_of_blender_path.pyindex df35d700..1f327a1e 100644--- a/freemocap/core_processes/export_data/blender_stuff/get_best_guess_of_blender_path.py+++ b/freemocap/core_processes/export_data/blender_stuff/get_best_guess_of_blender_path.py@@ -35,6 +35,21 @@ def get_best_guess_of_blender_path():)return None+ if platform.system() == "Darwin":++ blender_app_path = Path("/Applications/Blender.app")++ if blender_app_path.exists():+ logger.info(f"Mac machine detected - guessing that `blender` is installed at: {str(blender_app_path)}")++ blender_exe_path = blender_app_path / "Contents/MacOS/Blender"+ return str(blender_exe_path)+ else:+ logger.warning(+ f"Could not find Blender executable in the applications folder. Please located it manually (or install Blender, if it isn't installed)."+ )+ return None+else:- logger.info(f"Non-Windows machine detected - TODO - Test how this works on Mac/Linux")+ logger.info(f"Non-Windows/Mac machine detected - TODO - Test how this works on Linux")return None