better debug, handle relative output paths
This commit is contained in:
parent
ed7f30b206
commit
dc815d10fb
@ -23,6 +23,7 @@
|
||||
# set up logging
|
||||
import logging
|
||||
logger = logging.getLogger("pylorax")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
sh = logging.StreamHandler()
|
||||
sh.setLevel(logging.INFO)
|
||||
|
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user