From d72a5e7ee57e24a2c237a50643edf0f364f72f42 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 10 Jun 2008 22:52:08 +0300 Subject: Remove odirect_read and odirect_pipe. --- obnam | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'obnam') diff --git a/obnam b/obnam index 2922dd0b..2a3a6723 100755 --- a/obnam +++ b/obnam @@ -24,24 +24,24 @@ import logging import sys import traceback -import obnam +import obnamlib def main(): try: - context = obnam.context.Context() - args = obnam.config.parse_options(context.config, sys.argv[1:]) - context.cache = obnam.cache.Cache(context.config) - context.be = obnam.backend.init(context.config, context.cache) + context = obnamlib.context.Context() + args = obnamlib.config.parse_options(context.config, sys.argv[1:]) + context.cache = obnamlib.cache.Cache(context.config) + context.be = obnamlib.backend.init(context.config, context.cache) context.be.set_progress_reporter(context.progress) - app = obnam.Application(context) + app = obnamlib.Application(context) - obnam.log.setup(context.config) + obnamlib.log.setup(context.config) - logging.info("%s %s starting up" % (obnam.NAME, obnam.VERSION)) + logging.info("%s %s starting up" % (obnamlib.NAME, obnamlib.VERSION)) try: - factory = obnam.OperationFactory(app) + factory = obnamlib.OperationFactory(app) oper = factory.get_operation(args) oper.do_it(args[1:]) @@ -60,7 +60,7 @@ def main(): if app.get_store(): app.get_store().close() sys.exit(1) - except obnam.ObnamException, e: + except obnamlib.ObnamException, e: logging.error("%s" % str(e)) sys.stderr.write("%s\n" % str(e)) if app.get_store(): -- cgit v1.2.1