# -*- coding: utf-8 -*-
"""
/***************************************************************************
 Documentation
            A QGIS plugin
Open the MarineTools Documentation pdf 
                              -------------------
        begin                : 2026-01-27
        git sha              : $Format:%H$
        copyright            : (C) 2026 by Tim Le Bas
        email                : tlb@noc.ac.uk
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""
import os

class Documentation:
        
    def run(self):
        """Run method that performs all the real work"""
        import webbrowser
        import marinetools
        MThelp = os.path.dirname(marinetools.__file__) + "\\Documentation\\MarineTools Documentation.pdf"
        webbrowser.open(MThelp)
        return

