Skip to content

Instantly share code, notes, and snippets.

# import the sys and os libraries for adding modules
import sys
import os
# import the Rhino library
import Rhino
# manually write out the path to the folder
# where networkx is stored, as a list of strings
pathbits = [
# -*- coding: utf-8 -*-
"""
To install pylinkgrammar on Ubuntu
sudo apt-get install liblink-grammar4-dev cmake swig
pip install pylinkgrammar
"""
from pylinkgrammar.linkgrammar import Parser