def get_notebook(current_scene_db, library_db, name):
    """gets a notebook path from name and library name"""
    from src.praxxis.notebook import notebook
    from src.praxxis.util import error
    from src.praxxis.sqlite import sqlite_notebook
    tmp_name = notebook.get_notebook_by_ordinal(current_scene_db, name)[0]
    if tmp_name is not None:
        name = tmp_name
    notebook_data = sqlite_notebook.get_notebook(library_db, name)
    if not len(notebook_data) == 1:
        notebook_data = [notebook.handle_duplicate_notebook(library_db,
            notebook_data, name)]
    return notebook_data[0]
