diff options
author | Lars Wirzenius <liw@gytha> | 2008-06-10 22:52:08 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@gytha> | 2008-06-10 22:52:08 +0300 |
commit | d72a5e7ee57e24a2c237a50643edf0f364f72f42 (patch) | |
tree | 69e7c82bafb82dc173a564ca7b5f575b6b6cca4f /obnam | |
parent | d20e56b8c143dd0b432b1c755324acaaa25470e8 (diff) | |
download | obnam-d72a5e7ee57e24a2c237a50643edf0f364f72f42.tar.gz |
Remove odirect_read and odirect_pipe.
Diffstat (limited to 'obnam')
-rwxr-xr-x | obnam | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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(): |