Default save path for an export: in *subdir*. Mirrors the .slicap_sch base name so exporting design.slicap_sch proposes design.cir / design.svg / design.pdf.
(self, subdir: str, ext: str)
| 827 | self._dirty = True # style is part of the schematic now |
| 828 | |
| 829 | def _default_export_path(self, subdir: str, ext: str) -> str: |
| 830 | """Default save path for an export: <schematic stem><ext> in *subdir*. |
| 831 | |
| 832 | Mirrors the .slicap_sch base name so exporting design.slicap_sch |
| 833 | proposes design.cir / design.svg / design.pdf.""" |
| 834 | stem = self._current_path.stem if self._current_path else "schematic" |
| 835 | return str(project.subdir(subdir) / f"{stem}{ext}") |
| 836 | |
| 837 | def _on_export_svg(self): |
| 838 | path, _ = QFileDialog.getSaveFileName( |
no outgoing calls
no test coverage detected