From 86e6a274173f67079223a8cc5358acf96ef914ef Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sat, 18 Jan 2025 10:06:49 +0000 Subject: [PATCH] Use os.pathsep instead of hand-rolled equivalent --- src/bonsai/bonsai/tool/blender.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bonsai/bonsai/tool/blender.py b/src/bonsai/bonsai/tool/blender.py index e1c4852387..39ca87db17 100644 --- a/src/bonsai/bonsai/tool/blender.py +++ b/src/bonsai/bonsai/tool/blender.py @@ -21,7 +21,6 @@ import bpy import bmesh import json import os -import platform from ifcopenshell import entity_instance import ifcopenshell.api import ifcopenshell.util.element @@ -437,11 +436,7 @@ class Blender(bonsai.core.tool.Blender): bin_dir = str(Path(__file__).parent.parent.resolve() / "libs" / "bin") current_path = os.environ["PATH"] if bin_dir not in current_path: - if platform.system() == "Windows": - path_separator = ";" - else: - path_separator = ":" - os.environ["PATH"] = current_path + path_separator + bin_dir + os.environ["PATH"] = current_path + os.pathsep + bin_dir @classmethod def get_default_selection_keypmap(cls) -> tuple: