Fixed last patch

This commit is contained in:
Salvador E. Tropea 2022-02-17 18:44:34 -03:00
parent f26ab6ede8
commit d7e0cc2936
1 changed files with 9 additions and 3 deletions

View File

@ -1538,9 +1538,15 @@ class Schematic(object):
Only the schematics are loaded not the libs. """
logger.debug("Loading sheet from "+fname)
self.fname = fname
self.libs = {} if libs is None else libs
self.fields = [] if fields is None else fields
self.fields_lc = set() if fields_lc is None else fields_lc
if libs is None:
libs = {}
self.libs = libs
if fields is None:
fields = []
self.fields = fields
if fields_lc is None:
fields_lc = set()
self.fields_lc = fields_lc
self.project = project
self.sheet_path = sheet_path
self.sheet_path_h = sheet_path_h