convert: fix unicode error in path construction

I introduced a regression a few commits ago when I started using
lib.destination with the basedir keyword argument as opposed to doing
os.path.join manually.
This commit is contained in:
Adrian Sampson 2013-03-09 11:37:10 -08:00
parent 218f10a62d
commit 7d9fd0a2cf

View file

@ -126,6 +126,7 @@ def convert_func(lib, opts, args):
config['convert']['dest'].get()
if not dest:
raise ui.UserError('no convert destination set')
dest = util.bytestring_path(dest)
threads = opts.threads if opts.threads is not None else \
config['convert']['threads'].get(int)
keep_new = opts.keep_new