Changeset 170

Show
Ignore:
Timestamp:
05/13/07 20:05:08 (2 years ago)
Author:
johnbywater
Message:

Reintroduced 'conf' option, but without 'str' type.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/domainmodel-test

    r169 r170  
    2525    # todo: fix this, which breaks optparse v1.4.1: 
    2626    # optparse.OptionError: option -c/--conf: invalid option type: 'str' 
    27     #parser.add_option('-c', '--conf', 
     27    parser.add_option('-c', '--conf', 
     28        action='store', dest='config', default='', 
    2829    #    action='store', type='str', dest='config', default='', 
    29     #    help='Path to configuration file. If not provided please ensure relevant environment variable is set.' 
    30     #    ) 
     30        help='Path to configuration file. If not provided please ensure relevant environment variable is set.' 
     31        ) 
    3132     
    3233    (options, args) = parser.parse_args() 
    33     #if options.config: 
    34     #    os.environ['DOMAINMODEL_SETTINGS'] = options.config 
     34    if options.config: 
     35        os.environ['DOMAINMODEL_SETTINGS'] = options.config 
    3536     
    3637    # import after SETTINGS is set