Browse Source

add missing warning() function

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43817 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 years ago
parent
commit
2753afd366
1 changed files with 3 additions and 0 deletions
  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)