[GRASS-SVN] r61201 - sandbox/wenzeslaus/gunittest
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 8 14:34:46 PDT 2014
Author: wenzeslaus
Date: 2014-07-08 14:34:46 -0700 (Tue, 08 Jul 2014)
New Revision: 61201
Added:
sandbox/wenzeslaus/gunittest/gutils.py
Log:
gunittest: add function for getting current mapset as string
Added: sandbox/wenzeslaus/gunittest/gutils.py
===================================================================
--- sandbox/wenzeslaus/gunittest/gutils.py (rev 0)
+++ sandbox/wenzeslaus/gunittest/gutils.py 2014-07-08 21:34:46 UTC (rev 61201)
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+"""
+Utilities related to GRASS GIS.
+"""
+
+from .gmodules import call_module
+
+
+def get_curret_mapset():
+ """Get curret mapset name as a string"""
+ return call_module('g.mapset', flags='p').strip()
Property changes on: sandbox/wenzeslaus/gunittest/gutils.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list