<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
<p>Is there any change in the way g.message works under python
between GRASS 7.4.0 and 7.4.2? I am not getting any message
output. (python "print" and "cat" statements work as expected).
The script printed messages fine in 7.4.0.<br>
</p>
<p><br>
</p>
<p>I see the usual result at a shell prompt:</p>
<p><tt><br>
</tt></p>
<p><tt>GRASS 7.4.2 (ITM):~ > g.message "Hello"</tt></p>
<p><tt>Hello</tt><tt><br>
</tt><tt>GRASS 7.4.2 (ITM):~ > g.message -w "Hello"</tt><tt><br>
</tt><tt>WARNING: Hello</tt></p>
<p><br>
</p>
<p>However in a python script no output:</p>
<p><tt><br>
</tt></p>
<p><tt>GRASS 7.4.2 (ITM):~ > ipython2 </tt></p>
<p><tt>Python 2.7.12 (default, Dec 4 2017, 14:50:18) </tt><tt><br>
</tt><tt>Type "copyright", "credits" or "license" for more
information.</tt><tt><br>
</tt><tt><br>
</tt><tt>IPython 5.1.0 -- An enhanced Interactive Python.</tt><tt><br>
</tt><tt>? -> Introduction and overview of IPython's
features.</tt><tt><br>
</tt><tt>%quickref -> Quick reference.</tt><tt><br>
</tt><tt>help -> Python's own help system.</tt><tt><br>
</tt><tt>object? -> Details about 'object', use 'object??'
for extra details.</tt><tt><br>
</tt><tt><br>
</tt><tt>In [1]: import grass.script as gs</tt><tt><br>
</tt><tt>In [2]: gs.message("Hello")</tt><tt><br>
</tt><tt>In [3]: gs.warning("Hello")</tt><tt><br>
</tt><tt>In [4]: print("Hello")<br>
Hello</tt></p>
<p><br>
</p>
<p>Thanks<br>
</p>
<pre class="moz-signature" cols="72">--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</body>
</html>