# Path: papaye/models.py
# def get_manager(config):
#     manager = PapayeEvolutionManager(
#         config,
#         evolve_packagename='papaye.evolve',
#         sw_version=SW_VERSION,
#         initial_db_version=0
#     )
#     return manager


import sys
import logging
from pyramid.paster import get_appsettings
from pyramid.config import Configurator
from repoze.evolution import evolve_to_latest
from papaye.models import get_manager




def main(*argv, **kwargs):
    logger = logging.getLogger()
    #logger.disabled = True
    config_file = sys.argv[-1]
    settings = get_appsettings(config_file)
    config = Configurator(settings=settings)

# Path: papaye/models.py
# def get_manager(config):
#     manager = PapayeEvolutionManager(
#         config,
#         evolve_packagename='papaye.evolve',
#         sw_version=SW_VERSION,
#         initial_db_version=0
#     )
#     return manager


# Path: papaye/scripts/evolve.py
import sys
import logging
from pyramid.paster import get_appsettings
from pyramid.config import Configurator
from repoze.evolution import evolve_to_latest
from papaye.models import get_manager





def main(*argv, **kwargs):
    logger = logging.getLogger()
    #logger.disabled = True
    config_file = sys.argv[-1]
    settings = get_appsettings(config_file)
    config = Configurator(settings=settings)

    manager = get_manager(config)