Explorar o código

add missing warning() function

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43817 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=14) %!d(string=hai) anos
pai
achega
2753afd366
Modificáronse 1 ficheiros con 3 adicións e 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)