mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Use os.pathsep instead of hand-rolled equivalent
This commit is contained in:
@@ -21,7 +21,6 @@ import bpy
|
|||||||
import bmesh
|
import bmesh
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import platform
|
|
||||||
from ifcopenshell import entity_instance
|
from ifcopenshell import entity_instance
|
||||||
import ifcopenshell.api
|
import ifcopenshell.api
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
@@ -437,11 +436,7 @@ class Blender(bonsai.core.tool.Blender):
|
|||||||
bin_dir = str(Path(__file__).parent.parent.resolve() / "libs" / "bin")
|
bin_dir = str(Path(__file__).parent.parent.resolve() / "libs" / "bin")
|
||||||
current_path = os.environ["PATH"]
|
current_path = os.environ["PATH"]
|
||||||
if bin_dir not in current_path:
|
if bin_dir not in current_path:
|
||||||
if platform.system() == "Windows":
|
os.environ["PATH"] = current_path + os.pathsep + bin_dir
|
||||||
path_separator = ";"
|
|
||||||
else:
|
|
||||||
path_separator = ":"
|
|
||||||
os.environ["PATH"] = current_path + path_separator + bin_dir
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_default_selection_keypmap(cls) -> tuple:
|
def get_default_selection_keypmap(cls) -> tuple:
|
||||||
|
|||||||
Reference in New Issue
Block a user