import os from holland.core.plugin import add_plugin_dir, get_distribution import logging logging.basicConfig(level=logging.DEBUG) logging.info(logging) path = os.path.abspath('env/usr/share/holland/plugins') add_plugin_dir(path) dist = get_distribution("holland.plugin.mysqldump")
import os, sys import optparse import logging from holland.core.plugin import iter_entry_points, get_distribution from holland.core.util.bootstrap import bootstrap from holland.core.command import run from holland.core.config.checks import is_logging_level HOLLAND_VERSION = get_distribution('holland').version HOLLAND_BANNER = """ Holland Backup v%s Copyright (c) 2008-2010 Rackspace US, Inc. More info available at http://hollandbackup.org [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] """ % HOLLAND_VERSION LOGGER = logging.getLogger(__name__) ## global parser parser = optparse.OptionParser(add_help_option=False,version=HOLLAND_BANNER) parser.add_option('-h', '--help', action='store_true', help="Show help") parser.add_option('-v', '--verbose', action='store_const', const='info', dest='log_level', help="Log verbose output") parser.add_option('-d', '--debug', action='store_const', const='debug',
import os, sys import optparse import logging from holland.core.plugin import iter_entry_points, get_distribution from holland.core.util.bootstrap import bootstrap from holland.core.command import run from holland.core.config.checks import is_logging_level HOLLAND_VERSION = get_distribution('holland').version HOLLAND_BANNER = """ Holland Backup v%s Copyright (c) 2008-2010 Rackspace US, Inc. More info available at http://hollandbackup.org [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] [[[[[[[]]]]]]] """ % HOLLAND_VERSION LOGGER = logging.getLogger(__name__) ## global parser parser = optparse.OptionParser(add_help_option=False, version=HOLLAND_BANNER) parser.add_option('-h', '--help', action='store_true', help="Show help") parser.add_option('-v', '--verbose', action='store_const', const='info', dest='log_level',