[GRASS-SVN] r64408 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 2 18:49:07 PST 2015


Author: wenzeslaus
Date: 2015-02-02 18:49:07 -0800 (Mon, 02 Feb 2015)
New Revision: 64408

Modified:
   grass/trunk/lib/init/grass.py
Log:
startup: do not show old-school command line welcome

 * user who needs the info such as website URL will not read it in the command line
 * do not require first time user to press Enter (or hit RETURN) in command line to make GRASS start
 * rename function according to the part which is creating a dummy rc file
 * fixes #2572 for 7.x
 * see also r57549, r64345, r64405 and r64407


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2015-02-03 02:08:29 UTC (rev 64407)
+++ grass/trunk/lib/init/grass.py	2015-02-03 02:49:07 UTC (rev 64408)
@@ -501,27 +501,8 @@
     os.environ['GRASS_HTML_BROWSER'] = browser
 
 
-def grass_intro():
-    intro = _(r"""
-WELCOME TO GRASS %s
-
-   1) Have at your side all available GRASS GIS tutorials
-
-   2) When working on your location, the following materials
-      are extremely useful:
-      - A topographic map of your area
-      - Current catalog of available computer maps
-
-   3) Check the GRASS GIS web pages for supporting mailing lists and more:
-      http://grass.osgeo.org
-""") % grass_version
-    sys.stderr.write(intro)
-
-    sys.stderr.write("\n")
-    sys.stderr.write(_("Hit RETURN to continue"))
-    sys.stdin.readline()
-
-    # for convenience, define pwd as GISDBASE:
+def create_initial_gisrc():
+    # for convenience, define GISDBASE as pwd:
     s = r"""GISDBASE: %s
 LOCATION_NAME: <UNKNOWN>
 MAPSET: <UNKNOWN>
@@ -1401,7 +1382,7 @@
                 " - Create manually GISRC file (%s)\n"
                 " - Launch GRASS with path to "
                 "the location/mapset as an argument (`grass71 /path/to/location/mapset`)") % gisrcrc)
-    grass_intro()
+    create_initial_gisrc()
 else:
     clean_temp()
 



More information about the grass-commit mailing list