Skip to content

Commit

Permalink
[Quick Start][Changed] To use only projects
Browse files Browse the repository at this point in the history
- This avoids problems for sub-sheets in separated dirs.
  • Loading branch information
set-soft committed Jan 2, 2024
1 parent 3388055 commit 0feb739
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions kibot/kiplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0feb739

Please sign in to comment.