Problems to detect the SCH under very particular constraints
Fixes #394
This commit is contained in:
parent
c725be952f
commit
fe26f1ab6a
|
|
@ -5,7 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.6.1] - UNRELEASED
|
||||
|
||||
### Fixed
|
||||
- Problems to detect the schematic name when the path to the config contained a
|
||||
dot that isn't used for an extension and some particular conditions were met.
|
||||
|
||||
## [1.6.0] - 2023-02-06
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -710,7 +710,9 @@ def solve_schematic(base_dir, a_schematic=None, a_board_file=None, config=None,
|
|||
# Unhide hidden config
|
||||
config = config[1:]
|
||||
# Remove any extension
|
||||
while '.' in config:
|
||||
last_split = None
|
||||
while '.' in config and last_split != config:
|
||||
last_split = config
|
||||
config = os.path.splitext(config)[0]
|
||||
# Try KiCad 5
|
||||
sch = os.path.join(base_dir, config+'.sch')
|
||||
|
|
|
|||
Loading…
Reference in New Issue