Monica wrote: > How can I check if a certain mapset exists in my active location in a > Python Script? no exact answer, but start with "g.mapsets -l" + .split(' ') + import string if( string.find(mapsets, 'some_mapset_name') < 0 ): ... maybe it helps, Hamish