Fixed GenCAD output targets.

- Also added a category
This commit is contained in:
Salvador E. Tropea 2022-06-01 11:31:55 -03:00
parent 24d81f4756
commit 0eafc93fa8
2 changed files with 9 additions and 2 deletions

View File

@ -5,11 +5,14 @@ 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Fixed ### Added
- Components with mounting hole where excluded (#201)
- New outputs: - New outputs:
- `navigate_results` creates web pages to browse the generated outputs. - `navigate_results` creates web pages to browse the generated outputs.
### Fixed
- Components with mounting hole where excluded (#201)
- GenCAD output targets.
### Changed ### Changed
- KiCad environment variables: more variables detected, native KiCad 6 names, - KiCad environment variables: more variables detected, native KiCad 6 names,
all exported to the environment (#205) all exported to the environment (#205)

View File

@ -35,6 +35,9 @@ class GenCADOptions(BaseOptions):
self._expand_id = 'gencad' self._expand_id = 'gencad'
self._expand_ext = 'cad' self._expand_ext = 'cad'
def get_targets(self, out_dir):
return [self._parent.expand_filename(out_dir, self.output)]
def run(self, name): def run(self, name):
check_script(CMD_PCBNEW_GENCAD, URL_PCBNEW_GENCAD, '1.6.5') check_script(CMD_PCBNEW_GENCAD, URL_PCBNEW_GENCAD, '1.6.5')
# Output file name # Output file name
@ -70,6 +73,7 @@ class GenCAD(BaseOutput): # noqa: F821
manufacturers """ manufacturers """
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self._category = 'PCB/export'
with document: with document:
self.options = GenCADOptions self.options = GenCADOptions
""" [dict] Options for the `gencad` output """ """ [dict] Options for the `gencad` output """