From 709d6facb9feba815c9e1235907f6499eb783512 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 10 Sep 2020 12:54:43 -0300 Subject: [PATCH] Fixed warnings when printing a schematic variant. We use a temporal copy of the schematic in a temporal dir. So now we add a dummy .pro file to avoid warnings. --- kibot/out_pdf_sch_print.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kibot/out_pdf_sch_print.py b/kibot/out_pdf_sch_print.py index 42517e34..7bbf8965 100644 --- a/kibot/out_pdf_sch_print.py +++ b/kibot/out_pdf_sch_print.py @@ -31,6 +31,10 @@ class PDF_Sch_PrintOptions(VariantOptions): # Save it to a temporal dir sch_dir = mkdtemp(prefix='tmp-kibot-pdf_sch_print-') fname = GS.sch.save_variant(sch_dir) + # Create a dummy project file to avoid warnings + prj_file = os.path.join(sch_dir, GS.sch_basename+'.pro') + f = open(prj_file, 'wt') + f.close() sch_file = os.path.join(sch_dir, fname) else: sch_dir = None