gutils.py 469 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """Utilities related to GRASS GIS for GRASS Python testing framework
  3. Copyright (C) 2014 by the GRASS Development Team
  4. This program is free software under the GNU General Public
  5. License (>=v2). Read the file COPYING that comes with GRASS GIS
  6. for details.
  7. :authors: Vaclav Petras
  8. """
  9. from .gmodules import call_module
  10. def get_current_mapset():
  11. """Get curret mapset name as a string"""
  12. return call_module('g.mapset', flags='p').strip()