def get_version(rel_path):
    """Given a path to a Python init file, return the version string."""
    with open(rel_path, "r") as openfile:
        lines = openfile.readlines()
    for line in lines:
        if line.startswith("__version__"):
            delim = '"' if '"' in line else "'"
            return line.split(delim)[1]
    raise RuntimeError("Unable to find version string.")