Skip to content
Snippets Groups Projects
Commit a84632c1 authored by Krisjanis Rijnieks's avatar Krisjanis Rijnieks :lion_face:
Browse files

Show what footprint file the script is looking for in case of error

parent 6cbdcf8c
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,10 @@ def checkFootprint(lineNum, footprintField):
errorOnLine(lineNum, 'Footprint library name is wrong')
if len(parts) > 1:
footpringPath = libraryName + '.pretty/' + parts[1] + '.kicad_mod'
footFileExists = path.exists(footpringPath)
footprintPath = libraryName + '.pretty/' + parts[1] + '.kicad_mod'
footFileExists = path.exists(footprintPath)
if footFileExists != True:
errorOnLine(lineNum, 'Footprint file does not exist')
errorOnLine(lineNum, 'Footprint file does not exist: ' + footprintPath)
with open(libraryName + '.lib', 'r') as f:
lines = f.readlines()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment