menudata.py 708 B

123456789101112131415161718192021222324252627282930
  1. """!
  2. @package gmodeler.menudata
  3. @brief wxGUI Graphical Modeler - menu data
  4. Classes:
  5. - menudata::ModelerData
  6. (C) 2010-2011 by the GRASS Development Team
  7. This program is free software under the GNU General Public License
  8. (>=v2). Read the file COPYING that comes with GRASS for details.
  9. @author Martin Landa <landa.martin gmail.com>
  10. """
  11. import os
  12. from core import globalvar
  13. from core.menudata import MenuData
  14. class ModelerData(MenuData):
  15. def __init__(self, filename = None):
  16. if not filename:
  17. gisbase = os.getenv('GISBASE')
  18. filename = os.path.join(globalvar.ETCWXDIR, 'xml', 'menudata_modeler.xml')
  19. MenuData.__init__(self, filename)