Changeset f92db31 for fedd


Ignore:
Timestamp:
Dec 1, 2008 4:09:32 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
12e6ca8
Parents:
12d7df6
Message:

tweak configuration handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd.py

    r12d7df6 rf92db31  
    9797
    9898
     99if not os.access(opts.configfile, os.R_OK):
     100    sys.exit("Can't read config file %s" % opts.configfile)
    99101
    100102# Initialize the implementation
    101 if opts.configfile != None:
    102     try:
    103         config= config_parser()
    104         config.read(opts.configfile)
    105     except Exception, e:
    106         sys.exit("Cannot parse config file: %s" % e)
    107 else:
    108     sys.exit("--configfile is required")
     103try:
     104    config= config_parser()
     105    config.read(opts.configfile)
     106except Exception, e:
     107    sys.exit("Cannot parse config file %s: %s" % (opts.configfile, e))
    109108
    110109try:
Note: See TracChangeset for help on using the changeset viewer.