|
@@ -512,6 +512,10 @@ class MapFrame(wx.Frame):
|
|
|
def _initDisplay(self):
|
|
|
"""!Initialize map display, set dimensions and map region
|
|
|
"""
|
|
|
+ if not grass.find_program('g.region', ['--help']):
|
|
|
+ sys.exit(_("GRASS module '%s' not found. Unable to start map "
|
|
|
+ "display window.") % 'g.region')
|
|
|
+
|
|
|
self.width, self.height = self.GetClientSize()
|
|
|
|
|
|
Debug.msg(2, "MapFrame._initDisplay():")
|