From 08522624bbf26ddd65f0aa2fb21dd0fe0aeb40db Mon Sep 17 00:00:00 2001 From: Mingbo Peng Date: Tue, 22 Oct 2024 13:28:59 +0800 Subject: [PATCH] fix(Rhino8): fix dll reference issue in Rhino 8 .NetCore --- ladybug_rhino/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ladybug_rhino/command.py b/ladybug_rhino/command.py index 1b8f665..9fe0a4b 100644 --- a/ladybug_rhino/command.py +++ b/ladybug_rhino/command.py @@ -61,9 +61,9 @@ def import_pollination_core(): if dll_dir is None: return None pol_dll = os.path.join(dll_dir, 'Pollination.Core.dll') - clr.AddReferenceToFileAndPath(pol_dll) if pol_dll not in sys.path: sys.path.append(pol_dll) + clr.AddReference("Pollination.Core") import Core return Core @@ -78,9 +78,9 @@ def import_ladybug_display_schema(): if dll_dir is None: return None pol_dll = os.path.join(dll_dir, 'LadybugDisplaySchema.dll') - clr.AddReferenceToFileAndPath(pol_dll) if pol_dll not in sys.path: sys.path.append(pol_dll) + clr.AddReference("LadybugDisplaySchema") import LadybugDisplaySchema return LadybugDisplaySchema @@ -95,9 +95,9 @@ def import_honeybee_ui(): if dll_dir is None: return None pol_dll = os.path.join(dll_dir, 'Honeybee.UI.Rhino.dll') - clr.AddReferenceToFileAndPath(pol_dll) if pol_dll not in sys.path: sys.path.append(pol_dll) + clr.AddReference("Honeybee.UI.Rhino") import Honeybee return Honeybee