#!/usr/bin/env python
from os.path import join, dirname
try:
    from robot.libdoc import libdoc
except Exception:
    def main():
        print("Robot Framework 2.7 or later required for generating documentation")
else:
    def main():
        libdoc(join(dirname(__file__), '..', 'CSVLibrary'), join(dirname(__file__), 'CSVLibrary.html'))


if __name__ == '__main__':
    main()
