Skip to content

Commit

Permalink
fix(Rhino8): fix dll reference issue in Rhino 8 .NetCore
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng authored and chriswmackey committed Oct 23, 2024
1 parent 8aa0294 commit 0852262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ladybug_rhino/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 0852262

Please sign in to comment.