[Quick Start][Changed] To use only projects
- This avoids problems for sub-sheets in separated dirs.
This commit is contained in:
parent
338805560a
commit
0feb739edf
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue