Changeset 4971f63 in flex_extract.git for source/python/submit.py


Ignore:
Timestamp:
Sep 27, 2018, 12:31:47 PM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
82b624a
Parents:
25b14be
Message:

eliminated some redundancy and exchanged CONTROL2 with the config-filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/submit.py

    r25b14be r4971f63  
    7777
    7878    args = get_cmdline_arguments()
    79 
    80     try:
    81         c = ControlFile(args.controlfile)
    82     except IOError:
    83         print('Could not read CONTROL file "' + args.controlfile + '"')
    84         print('Either it does not exist or its syntax is wrong.')
    85         print('Try "' + sys.argv[0].split('/')[-1] + \
    86               ' -h" to print usage information')
    87         sys.exit(1)
     79    c = ControlFile(args.controlfile)
    8880
    8981    env_parameter = read_ecenv(_config.PATH_ECMWF_ENV)
     
    9587    # on ECMWF server this would also be the local side
    9688    called_from_dir = os.getcwd()
    97     if args.queue is None:
     89    if not args.queue:
    9890        if c.inputdir[0] != '/':
    9991            c.inputdir = os.path.join(called_from_dir, c.inputdir)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG