ladybug_rhino.ghpath module

Functions for managing the copying of user objects to the Grasshopper path.

ladybug_rhino.ghpath.clean_libraries()[source]

Remove installed Ladybug Tools packages from the user’s Libraries folder.

ladybug_rhino.ghpath.clean_userobjects()[source]

Remove installed Ladybug Tools packages from the user’s userobjects folder.

ladybug_rhino.ghpath.copy_components_packages(directory)[source]

Copy all Ladybug tools components packages to their respective locations.

Parameters:

directory – The path to a directory that contains all of the Ladybug Tools Grasshopper python packages to be copied (both user object packages and dotnet gha packages).

ladybug_rhino.ghpath.copy_packages_to_libraries(directory)[source]

Copy Ladybug tools Libraries packages to the current user’s libraries folder.

Parameters:

directory – The path to a directory that contains the Ladybug Tools Grasshopper python packages.

ladybug_rhino.ghpath.copy_packages_to_userobjects(directory)[source]

Copy Ladybug Tools user object packages to the current user’s userobject folder.

Parameters:

directory – The path to a directory that contains the Ladybug Tools Grasshopper python packages to be copied.

ladybug_rhino.ghpath.find_grasshopper_libraries()[source]

Get the paths to the current user’s Grasshopper Libraries folder.

The folder(s) will be created if they do not already exist.

ladybug_rhino.ghpath.find_grasshopper_userobjects()[source]

Get the paths to the current user’s Grasshopper user object folder.

The folder(s) will be created if they do not already exist.