Changeset 50f9ca6 in flex_extract.git for Source/Python/install.py


Ignore:
Timestamp:
Mar 8, 2020, 2:28:44 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
b1674ed, e0005c9
Parents:
5868d74
Message:

BUGFIX (ticket #263): Corrected installation check for parameters GATEWAY and DESTINATION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/install.py

    r0f89116 r50f9ca6  
    285285
    286286    if c.install_target and c.install_target != 'local':
    287         if not c.ecgid or not c.ecuid or \
    288            not c.gateway or not c.destination:
    289             print('Please enter your ECMWF user id and group id as well ' +
    290                   'as the \nname of the local gateway and the ectrans ' +
    291                   'destination ')
    292             print('with command line options --ecuid --ecgid \
    293                    --gateway --destination')
     287        if not c.ecgid or not c.ecuid:
     288            print('Please enter your ECMWF user id and group id '
     289                  ' with command line options --ecuid --ecgid')
    294290            print('Try "' + sys.argv[0].split('/')[-1] + \
    295291                  ' -h" to print usage information')
    296             print('Please consult ecaccess documentation or ECMWF user \
    297                    support for further details')
     292            print('Please consult ecaccess documentation or ECMWF user '
     293                  'support for further details.\n')
    298294            sys.exit(1)
    299 
     295        if not c.gateway or not c.destination:
     296            print('WARNING: Parameters GATEWAY and DESTINATION were '
     297                  'not properly set for working on ECMWF server. \n'
     298                  'There will be no transfer of output files to the '
     299                  'local gateway server possible!')
    300300        if not c.installdir:
    301301            c.installdir = '${HOME}'
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG