Fixed: for print_sch, when the PCB name included a path, it wasn't removed and the

output pointed to a mix of both paths, failing.
This commit is contained in:
Salvador E. Tropea 2020-05-19 11:37:51 -03:00
parent 02cdeac2f4
commit bcfaead5f1
1 changed files with 2 additions and 2 deletions

View File

@ -577,8 +577,8 @@ class Plotter(object):
exit(misc.PDF_SCH_PRINT)
to = output.options.type_options
if to.output:
cur = os.path.join(outdir, os.path.splitext(brd_file)[0]) + '.pdf'
new = os.path.join(outdir, to.output)
cur = os.path.abspath(os.path.join(outdir, os.path.splitext(os.path.basename(brd_file))[0]) + '.pdf')
new = os.path.abspath(os.path.join(outdir, to.output))
logger.debug('Moving '+cur+' -> '+new)
os.rename(cur, new)