From fe26f1ab6af1cdc4d9e1f0779d11d66358861f43 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 22 Feb 2023 13:04:45 -0300 Subject: [PATCH] Problems to detect the SCH under very particular constraints Fixes #394 --- CHANGELOG.md | 4 +++- kibot/kiplot.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fde1a393..33d243d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/kibot/kiplot.py b/kibot/kiplot.py index a130e236..5a419bf0 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -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')