@@ -192,7 +192,7 @@ def Popen(cmd, **kwargs): # pylint: disable=C0103
192
192
193
193
194
194
def gpath (* args ) -> str :
195
- """Construct path to file or directory in GRASS GIS installation
195
+ """Construct path to file or directory in GRASS installation
196
196
197
197
Can be called only after GISBASE was set.
198
198
"""
@@ -255,8 +255,8 @@ def fw(fmt: str, *args) -> str:
255
255
256
256
# using format for most but leaving usage of template for the dynamic ones
257
257
# two different methods are easy way to implement two phase construction
258
- HELP_TEXT = r"""GRASS GIS $VERSION_NUMBER
259
- Geographic Resources Analysis Support System (GRASS GIS ).
258
+ HELP_TEXT = r"""GRASS $VERSION_NUMBER
259
+ Geographic Resources Analysis Support System (GRASS).
260
260
261
261
{usage}:
262
262
$CMD_NAME [-h | --help] [-v | --version]
@@ -388,7 +388,7 @@ def help_message(default_gui) -> None:
388
388
def create_grass_config_dir () -> str :
389
389
"""Create configuration directory
390
390
391
- Determines path of GRASS GIS user configuration directory and creates
391
+ Determines path of GRASS user configuration directory and creates
392
392
it if it does not exist.
393
393
394
394
Configuration directory is for example used for grass env file
@@ -677,7 +677,7 @@ def create_location(gisdbase, location, geostring) -> None:
677
677
678
678
EPSG code format is ``EPSG:code`` or ``EPSG:code:datum_trans``.
679
679
680
- :param gisdbase: Path to GRASS GIS database directory
680
+ :param gisdbase: Path to GRASS database directory
681
681
:param location: name of new Location
682
682
:param geostring: path to a georeferenced file or EPSG code
683
683
"""
@@ -718,7 +718,7 @@ def cannot_create_location_reason(gisdbase: StrPath, location: str) -> str:
718
718
The goal is to provide the most suitable error message
719
719
(rather than to do a quick check).
720
720
721
- :param gisdbase: Path to GRASS GIS database directory
721
+ :param gisdbase: Path to GRASS database directory
722
722
:param location: name of a Location
723
723
:returns: translated message
724
724
"""
@@ -871,9 +871,7 @@ def set_mapset(
871
871
if not tmp_location :
872
872
# Report report only when new location is not temporary.
873
873
message (
874
- _ ("Creating new GRASS GIS project <{}>..." ).format (
875
- location_name
876
- )
874
+ _ ("Creating new GRASS project <{}>..." ).format (location_name )
877
875
)
878
876
create_location (gisdbase , location_name , geofile )
879
877
else :
@@ -909,9 +907,7 @@ def set_mapset(
909
907
).format (mapset = mapset , geofile = geofile )
910
908
)
911
909
if not tmp_mapset :
912
- message (
913
- _ ("Creating new GRASS GIS mapset <{}>..." ).format (mapset )
914
- )
910
+ message (_ ("Creating new GRASS mapset <{}>..." ).format (mapset ))
915
911
# create mapset directory
916
912
os .mkdir (path )
917
913
if tmp_mapset :
@@ -935,7 +931,7 @@ def set_mapset(
935
931
else :
936
932
fatal (
937
933
_ (
938
- "GRASS GIS database directory, project and mapset"
934
+ "GRASS database directory, project and mapset"
939
935
" not set properly."
940
936
" Use GUI or command line to set them."
941
937
)
@@ -945,7 +941,7 @@ def set_mapset(
945
941
# we don't follow the LOCATION_NAME legacy naming here but we have to still
946
942
# translate to it, so always double check
947
943
class MapsetSettings :
948
- """Holds GRASS GIS database directory, Location and Mapset
944
+ """Holds GRASS database directory, Location and Mapset
949
945
950
946
Provides few convenient functions.
951
947
"""
@@ -1475,7 +1471,7 @@ def close_gui() -> None:
1475
1471
1476
1472
1477
1473
def show_banner () -> None :
1478
- """Write GRASS GIS ASCII name to stderr"""
1474
+ """Write GRASS ASCII name to stderr"""
1479
1475
sys .stderr .write (
1480
1476
r"""
1481
1477
__________ ___ __________ _______________
@@ -1490,7 +1486,7 @@ def show_banner() -> None:
1490
1486
1491
1487
def say_hello () -> None :
1492
1488
"""Write welcome to stderr including code revision if in git copy"""
1493
- sys .stderr .write (_ ("Welcome to GRASS GIS %s" ) % GRASS_VERSION )
1489
+ sys .stderr .write (_ ("Welcome to GRASS %s" ) % GRASS_VERSION )
1494
1490
if GRASS_VERSION .endswith ("dev" ):
1495
1491
try :
1496
1492
with open (gpath ("etc" , "VERSIONNUMBER" )) as filerev :
@@ -1512,11 +1508,11 @@ def say_hello() -> None:
1512
1508
1513
1509
1514
1510
def show_info (shellname , grass_gui , default_gui ) -> None :
1515
- """Write basic info about GRASS GIS and GRASS session to stderr"""
1511
+ """Write basic info about GRASS and GRASS session to stderr"""
1516
1512
sys .stderr .write (
1517
1513
fw (
1518
1514
INFO_TEXT ,
1519
- _ ("GRASS GIS homepage:" ),
1515
+ _ ("GRASS homepage:" ),
1520
1516
# GTC Running through: SHELL NAME
1521
1517
_ ("This version running through:" ),
1522
1518
shellname ,
@@ -1638,7 +1634,7 @@ def sh_like_startup(location, location_name, grass_env_file, sh):
1638
1634
else :
1639
1635
f .write ("test -r ~/.alias && . ~/.alias\n " )
1640
1636
1641
- # GRASS GIS and ISIS blend
1637
+ # GRASS and ISIS blend
1642
1638
grass_name = "GRASS" if not os .getenv ("ISISROOT" ) else "ISIS-GRASS"
1643
1639
1644
1640
if sh == "zsh" :
@@ -1763,7 +1759,7 @@ def done_message() -> None:
1763
1759
# here was something for batch job but it was never called
1764
1760
message (_ ("Done." ))
1765
1761
message ("" )
1766
- message (_ ("Goodbye from GRASS GIS " ))
1762
+ message (_ ("Goodbye from GRASS" ))
1767
1763
message ("" )
1768
1764
1769
1765
@@ -1824,7 +1820,7 @@ def print_params(params) -> None:
1824
1820
if any (param in dev_params for param in params ):
1825
1821
plat = gpath ("include" , "Make" , "Platform.make" )
1826
1822
if not os .path .exists (plat ):
1827
- fatal (_ ("Please install the GRASS GIS development package" ))
1823
+ fatal (_ ("Please install the GRASS development package" ))
1828
1824
with open (plat ) as fileplat :
1829
1825
# this is in fact require only for some, but prepare it anyway
1830
1826
linesplat = fileplat .readlines ()
@@ -2054,7 +2050,7 @@ def classic_parser(argv, default_gui) -> Parameters:
2054
2050
params .batch_job = parsed_args .exec
2055
2051
# Cases to execute immediately
2056
2052
if parsed_args .version :
2057
- sys .stdout .write ("GRASS GIS %s" % GRASS_VERSION )
2053
+ sys .stdout .write ("GRASS %s" % GRASS_VERSION )
2058
2054
sys .stdout .write ("\n " + readfile (gpath ("etc" , "license" )))
2059
2055
sys .exit ()
2060
2056
if parsed_args .config is not None :
@@ -2115,7 +2111,7 @@ def find_grass_python_package() -> None:
2115
2111
# Not translatable because we don't have translations loaded.
2116
2112
msg = (
2117
2113
"The grass Python package is missing. "
2118
- "Is the installation of GRASS GIS complete?"
2114
+ "Is the installation of GRASS complete?"
2119
2115
)
2120
2116
raise RuntimeError (msg )
2121
2117
@@ -2141,7 +2137,7 @@ def main() -> None:
2141
2137
"GRASS_DEBUG environmental variable is set. It is meant to be"
2142
2138
" an internal variable for debugging only this script.\n "
2143
2139
" Use 'g.gisenv set=\" DEBUG=[0-5]\" '"
2144
- " to turn GRASS GIS debug mode on if you wish to do so."
2140
+ " to turn GRASS debug mode on if you wish to do so."
2145
2141
)
2146
2142
2147
2143
# Set GRASS version number for R interface etc
@@ -2219,7 +2215,7 @@ def main() -> None:
2219
2215
if grass_gui == "text" and not params .mapset :
2220
2216
fatal (
2221
2217
_ (
2222
- "Unable to start GRASS GIS . You have the choice to:\n "
2218
+ "Unable to start GRASS. You have the choice to:\n "
2223
2219
" - Launch the graphical user interface with"
2224
2220
" the '--gui' switch\n "
2225
2221
" {cmd_name} --gui\n "
@@ -2240,7 +2236,7 @@ def main() -> None:
2240
2236
2241
2237
if not params .batch_job and not params .exit_grass :
2242
2238
# Only for interactive sessions, not for 'one operation' sessions.
2243
- message (_ ("Starting GRASS GIS ..." ))
2239
+ message (_ ("Starting GRASS..." ))
2244
2240
2245
2241
# Ensure GUI is set
2246
2242
if params .batch_job or params .exit_grass :
@@ -2289,14 +2285,14 @@ def main() -> None:
2289
2285
if not default_gisdbase :
2290
2286
fatal (
2291
2287
_ (
2292
- "Failed to start GRASS GIS , grassdata directory cannot"
2288
+ "Failed to start GRASS, grassdata directory cannot"
2293
2289
" be found or created."
2294
2290
)
2295
2291
)
2296
2292
elif not default_location :
2297
2293
fatal (
2298
2294
_ (
2299
- "Failed to start GRASS GIS , no default project to copy in"
2295
+ "Failed to start GRASS, no default project to copy in"
2300
2296
" the installation or copying failed."
2301
2297
)
2302
2298
)
0 commit comments