|
@@ -231,10 +231,12 @@ def out(fh, vars, tmpl):
|
|
def main():
|
|
def main():
|
|
global tmp_graph, tmp_group, tmp_psmap, tmp_psleg, tmp_gisleg
|
|
global tmp_graph, tmp_group, tmp_psmap, tmp_psleg, tmp_gisleg
|
|
|
|
|
|
- env = grass.gisenv()
|
|
|
|
|
|
+ env = gcore.gisenv()
|
|
mon = env.get('MONITOR', None)
|
|
mon = env.get('MONITOR', None)
|
|
if not mon:
|
|
if not mon:
|
|
- grass.fatal(_("No graphics device selected. Use d.mon to select graphics device."))
|
|
|
|
|
|
+ if not 'GRASS_RENDER_IMMEDIATE' in os.environ:
|
|
|
|
+ gcore.fatal(_("No graphics device selected."
|
|
|
|
+ " Use d.mon to select graphics device."))
|
|
|
|
|
|
breakpoints = options['breakpoints']
|
|
breakpoints = options['breakpoints']
|
|
colorscheme = options['colorscheme']
|
|
colorscheme = options['colorscheme']
|