Changes in test/run_one.py [76f132a:aaad4c95] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/run_one.py

    r76f132a raaad4c95  
    77import imp 
    88from os.path import abspath, dirname, split as splitpath, join as joinpath 
     9 
     10import logging 
     11logger = logging.getLogger(__name__) 
     12if not logger.root.handlers: 
     13    import logging.config 
     14    LOGGER_CONFIG_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'logging.ini') 
     15    logging.config.fileConfig(LOGGER_CONFIG_FILE, disable_existing_loggers=False) 
     16 
     17if len(sys.argv) < 2: 
     18    logger.error("Use %s <filename to test>",sys.argv[0]) 
     19    sys.exit(-1) 
    920 
    1021run_py = joinpath(dirname(dirname(abspath(__file__))), 'run.py') 
Note: See TracChangeset for help on using the changeset viewer.