From dc815d10fbb5636ed1f3636969a64ed607196b0f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Jan 2012 16:31:20 -0800 Subject: [PATCH] better debug, handle relative output paths --- src/pylorax/__init__.py | 1 + src/sbin/lorax | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 5160e6cb..9d2d2299 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -23,6 +23,7 @@ # set up logging import logging logger = logging.getLogger("pylorax") +logger.setLevel(logging.DEBUG) sh = logging.StreamHandler() sh.setLevel(logging.INFO) diff --git a/src/sbin/lorax b/src/sbin/lorax index 8d73ac6c..328827ea 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -80,7 +80,7 @@ def main(args): opts, args = parser.parse_args() try: - outputdir = args[0] + outputdir = os.path.abspath(args[0]) except IndexError: parser.error("missing one or more required arguments")