Skip to content

Commit

Permalink
Add kicad-cli to the PATH for Kicad 7
Browse files Browse the repository at this point in the history
  • Loading branch information
leoheck committed Feb 20, 2023
1 parent 21f0f76 commit 3fa7951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/kidiff
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ case ${OSTYPE} in
KICAD_PATH="${KICAD_CUSTOM_PATH}"
fi

export PATH="/Applications/KiCad/KiCad.app/Contents/MacOS/":"${PATH}"

case ${KICAD_VERSION} in
5*) ${KICAD_PATH}/Contents/Frameworks/Python.framework/Versions/Current/bin/python "${SCRIPTPATH}/../kidiff/kidiff.py" "$@" ;;
6*) ${KICAD_PATH}/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 "${SCRIPTPATH}/../kidiff/kidiff.py" "$@" ;;
Expand Down
2 changes: 1 addition & 1 deletion kidiff/plot_kicad_pcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if platform.system() == "Darwin":
sys.path.insert(0, "/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages/") # Kicad 5
sys.path.insert(0, "/Applications/KiCad/kicad.app/Contents/Frameworks/python/site-packages/") # Kicad 6
sys.path.insert(0, "/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/")
sys.path.insert(0, "/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/") # Kicad 6 and 7

if platform.system() == "Linux":
sys.path.insert(0, "/usr/lib/kicad/lib/python3/dist-packages/") # Kicad 7
Expand Down

0 comments on commit 3fa7951

Please sign in to comment.