Skip to content

Commit 942566e

Browse files
committed
Do not use pyvirtual display on Windows
1 parent 22a9472 commit 942566e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

pcbdraw/ui.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import platform
12
import sys
23
from dataclasses import dataclass
34
from enum import IntEnum
@@ -11,8 +12,6 @@
1112
from .plot import (PcbPlotter, PlotComponents, PlotPaste, PlotPlaceholders,
1213
PlotSubstrate, PlotVCuts, ResistorValue, load_remapping,
1314
mm2ki)
14-
from .renderer import (GuiPuppetError, RenderAction, Side, postProcessCrop,
15-
renderBoard, validateExternalPrerequisites)
1615
from .populate import populate
1716
from .pcbnew_common import fakeKiCADGui
1817

@@ -274,6 +273,12 @@ def render(input: str, output: str, side: str, renderer: str, projection: str,
274273
"""
275274
Create a rendered image of the PCB using KiCAD's 3D Viewer
276275
"""
276+
if platform.system() == "Windows":
277+
sys.exit("Render functionality is not available on Windows.")
278+
279+
from .renderer import (GuiPuppetError, RenderAction, Side, postProcessCrop,
280+
renderBoard, validateExternalPrerequisites)
281+
277282
try:
278283
validateExternalPrerequisites()
279284

0 commit comments

Comments
 (0)