better debug, handle relative output paths

This commit is contained in:
root 2012-01-03 16:31:20 -08:00 committed by Brian C. Lane
parent ed7f30b206
commit dc815d10fb
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
# set up logging
import logging
logger = logging.getLogger("pylorax")
logger.setLevel(logging.DEBUG)
sh = logging.StreamHandler()
sh.setLevel(logging.INFO)

View File

@ -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")