Bläddra i källkod

do not show old-school command line welcome (backport https://trac.osgeo.org/grass/changeset/64408)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64569 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 år sedan
förälder
incheckning
49da2d48f3
1 ändrade filer med 3 tillägg och 22 borttagningar
  1. 3 22
      lib/init/grass.py

+ 3 - 22
lib/init/grass.py

@@ -498,27 +498,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>
@@ -1405,7 +1386,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 (`grass70 /path/to/location/mapset`)") % gisrcrc)
-    grass_intro()
+    create_initial_gisrc()
 else:
     clean_temp()