+
+ # Create Database
+ if (sopt.options.get('create_db', None)
+ or not isfile(conf_manager.db_file)):
+ logger.info('Creating database in "{}"'.format(conf_manager.db_file))
+ open(conf_manager.db_file, 'a').close()
+ SimaDB(db_path=conf_manager.db_file).create_db()
+ if sopt.options.get('create_db', None):
+ logger.info('Done, bye...')
+ sys.exit(0)
+