Selaa lähdekoodia

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 https://trac.osgeo.org/grass/ticket/2572 for 7.x
 * see also https://trac.osgeo.org/grass/changeset/57549, https://trac.osgeo.org/grass/changeset/64345, https://trac.osgeo.org/grass/changeset/64405 and https://trac.osgeo.org/grass/changeset/64407


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64408 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 vuotta sitten
vanhempi
commit
1381dc2a3d
1 muutettua tiedostoa jossa 3 lisäystä ja 22 poistoa
  1. 3 22
      lib/init/grass.py

+ 3 - 22
lib/init/grass.py

@@ -501,27 +501,8 @@ def set_browser():
     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 @@ if not os.access(gisrc, os.F_OK):
                 " - 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()