From 0feb739edf06dde32503ce3feb6833a6cf29bb0f Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 2 Jan 2024 10:19:20 -0300 Subject: [PATCH] [Quick Start][Changed] To use only projects - This avoids problems for sub-sheets in separated dirs. --- CHANGELOG.md | 3 +++ kibot/kiplot.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fc88908..a21b99d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 to the compressed output by default. - Note that JLCPCB BoM and Position files aren't included anymore, they are uploaded separately. +- Quick Start: + - Now we generate if for projects, not separated files. + This avoids problems for sub-sheets in separated dirs. ### Fixed - Schematics: problems with deep nested and recycled sheets (#520) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 7ad0de18..b6cb54a6 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -1129,11 +1129,11 @@ def generate_examples(start_dir, dry, types): # Install the resources setup_resources() # Look for candidate dirs - k_files_regex = re.compile(r'([^/]+)\.(kicad_pcb|kicad_sch|sch)$') + k_files_regex = re.compile(r'([^/]+)\.(kicad_pro|pro)$') candidates = set() for f in _walk(start_dir, 6): if k_files_regex.search(f): - candidates.add(os.path.dirname(f)) + candidates.add(os.path.realpath(os.path.dirname(f))) # Try to generate the configs in the candidate places confs = [] for c in sorted(candidates):