2016-03-08 16:06:00 +01:00
|
|
|
#!/usr/local/bin/python3.4
|
|
|
|
'''
|
|
|
|
obi -- shortdesc
|
|
|
|
|
|
|
|
obi is a description
|
|
|
|
|
|
|
|
It defines classes_and_methods
|
|
|
|
|
|
|
|
@author: user_name
|
|
|
|
|
|
|
|
@copyright: 2014 organization_name. All rights reserved.
|
|
|
|
|
|
|
|
@license: license
|
|
|
|
|
|
|
|
@contact: user_email
|
|
|
|
@deffield updated: Updated
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
default_config = { 'software' : "The OBITools",
|
|
|
|
'log' : False,
|
|
|
|
'loglevel' : 'INFO',
|
2016-04-15 16:59:21 +02:00
|
|
|
'progress' : True,
|
2016-09-30 17:48:53 +02:00
|
|
|
'defaultdms' : None,
|
|
|
|
'inputview' : None,
|
|
|
|
'outputview' : None
|
2016-03-28 15:05:02 +02:00
|
|
|
}
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
root_config_name='obi'
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
from obitools3.apps.config import getConfiguration # @UnresolvedImport
|
2016-03-08 16:06:00 +01:00
|
|
|
from obitools3.version import version
|
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
__all__ = []
|
2016-03-08 16:06:00 +01:00
|
|
|
__version__ = version
|
2016-03-28 15:05:02 +02:00
|
|
|
__date__ = '2014-09-28'
|
2016-03-08 16:06:00 +01:00
|
|
|
__updated__ = '2014-09-28'
|
|
|
|
|
|
|
|
DEBUG = 1
|
|
|
|
TESTRUN = 0
|
|
|
|
PROFILE = 0
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ =="__main__":
|
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
config = getConfiguration(root_config_name,
|
|
|
|
default_config)
|
2016-03-08 16:06:00 +01:00
|
|
|
|
2016-03-28 15:05:02 +02:00
|
|
|
config[root_config_name]['module'].run(config)
|
2016-03-08 16:06:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|