Explorar el Código

add missing warning() function

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43817 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 14 años
padre
commit
2753afd366
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      lib/init/grass.py

+ 3 - 0
lib/init/grass.py

@@ -52,6 +52,9 @@ location = None
 create_new = None
 grass_gui = None
 
+def warning(text):
+    sys.stderr.write(_("WARNING") + ': ' + text + os.linesep)
+
 def try_remove(path):
     try:
 	os.remove(path)