Skip to content

Commit

Permalink
Merge pull request #334 from compas-dev/fix-ghuser-build-task
Browse files Browse the repository at this point in the history
Fix the ghuser component build task fetch GHIO lib from NuGet
  • Loading branch information
gonzalocasas authored Dec 12, 2021
2 parents 89761e0 + 0cdc00b commit 6a1a2f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def prepare_changelog(ctx):


@task(help={
'gh_io_folder': 'Folder where GH_IO.dll is located. Usually Rhino installation folder.',
'gh_io_folder': 'Folder where GH_IO.dll is located. If not specified, it will try to download from NuGet.',
'ironpython': 'Command for running the IronPython executable. Defaults to `ipy`.'})
def build_ghuser_components(ctx, gh_io_folder=None, ironpython=None):
"""Build Grasshopper user objects from source"""
Expand All @@ -226,8 +226,9 @@ def build_ghuser_components(ctx, gh_io_folder=None, ironpython=None):
ctx.run('git clone https://github.com/compas-dev/compas-actions.ghpython_components.git {}'.format(action_dir))

if not gh_io_folder:
gh_io_folder = 'temp'
import compas_ghpython
gh_io_folder = compas_ghpython.get_grasshopper_plugin_path('6.0')
compas_ghpython.fetch_ghio_lib(gh_io_folder)

if not ironpython:
ironpython = 'ipy'
Expand Down

0 comments on commit 6a1a2f1

Please sign in to comment.