def pybook_init(root=None): if not root: root = os.getcwd() if not os.path.isabs(root): root = os.path.abspath(root) pybook = Book(root) pybook.init()
def pybook_build(root=None, build='build'): if not root: root = os.getcwd() if not os.path.isabs(root): root = os.path.abspath(root) # TODO: check for specific renderer pybook = Book(root, build) pybook.build()