Skip to content

Commit

Permalink
[Copy Files][Fixed] Worksheet errors when using from compress
Browse files Browse the repository at this point in the history
It affected quick start, the wks was removed and the generated ZIP was
damaged.
  • Loading branch information
set-soft committed Oct 5, 2024
1 parent 91fc7dc commit 85bed10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- PCB Print: allow specifying `repeat_for_layer` with empty `repeat_layers`.
This was the old behavior (i.e. 1.7.0) (#671)
- Copy Files: problems when using from compress and using worksheets.


## [1.8.1] - 2024-09-25
Expand Down
1 change: 1 addition & 0 deletions docs/source/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Fixed

- PCB Print: allow specifying ``repeat_for_layer`` with empty
``repeat_layers``. This was the old behavior (i.e. 1.7.0) (#671)
- Copy Files: problems when using from compress and using worksheets.

[1.8.1] - 2024-09-25
--------------------
Expand Down
7 changes: 6 additions & 1 deletion kibot/out_copy_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,16 @@ def get_3d_models(self, f, mode_project, dry):
if dru_name:
extra_files.append(dru_name)
# Worksheet
# In dry mode we just want to know which WKSs are used
# In regular mode we copy the originals to the local names
prj_name_used = prj_name
if dry and prj_name_used is not None and not os.path.isfile(prj_name_used):
prj_name_used = GS.pro_file
wks = GS.fix_page_layout(prj_name_used, dry=dry)
extra_files += [w for w in wks if w]
if wks[0]: # Schematic WKS
extra_files.append(os.path.join(os.path.dirname(prj_name), 'schematic.kicad_wks'))
if wks[1]: # PCB WKS
extra_files.append(os.path.join(os.path.dirname(prj_name), 'pcbnew.kicad_wks'))
if mode_project:
extra_files += self.copy_footprints(f.dest, dry)
extra_files += self.copy_symbols(f.dest, dry)
Expand Down

0 comments on commit 85bed10

Please sign in to comment.