diff --git a/CHANGELOG.md b/CHANGELOG.md index f68de54c..13d647a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 using legacy file extensions (#446) - Electro-grammar: - Problems with floating point tolerances (i.e. 0.1%) (#447) +- KiCad user template directory autodetection for KiCad 7+ ## [1.6.2] - 2023-04-24 ### Added diff --git a/kibot/kicad/config.py b/kibot/kicad/config.py index e3a4faa3..cf8bf797 100644 --- a/kibot/kicad/config.py +++ b/kibot/kicad/config.py @@ -287,7 +287,7 @@ class KiConf(object): if home is None: return None if GS.ki6: - name = os.path.join(home, '.local', 'share', 'kicad', '6.0', 'template') + name = os.path.join(home, '.local', 'share', 'kicad', str(GS.kicad_version_major)+'.0', 'template') if os.path.isdir(name): return name name = os.path.join(home, 'kicad', 'template')