diff --git a/src/bonsai/bonsai/tool/blender.py b/src/bonsai/bonsai/tool/blender.py index 90db088f9c..b9b3ae0d49 100644 --- a/src/bonsai/bonsai/tool/blender.py +++ b/src/bonsai/bonsai/tool/blender.py @@ -477,6 +477,8 @@ class Blender(bonsai.core.tool.Blender): def ensure_bin_in_path(cls) -> None: """Check 'bin' folder is in PATH, if not add for this session""" bin_dir = str(Path(__file__).parent.parent.resolve() / "libs" / "bin") + if not os.path.isdir(bin_dir): + return # Maybe the user is using a system-wide Python package. See #7157. current_path = os.environ["PATH"] if bin_dir not in current_path: os.environ["PATH"] = current_path + os.pathsep + bin_dir