Skip to content

Commit

Permalink
Do not use pyvirtual display on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Nov 7, 2022
1 parent 22a9472 commit 942566e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pcbdraw/ui.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys
from dataclasses import dataclass
from enum import IntEnum
Expand All @@ -11,8 +12,6 @@
from .plot import (PcbPlotter, PlotComponents, PlotPaste, PlotPlaceholders,
PlotSubstrate, PlotVCuts, ResistorValue, load_remapping,
mm2ki)
from .renderer import (GuiPuppetError, RenderAction, Side, postProcessCrop,
renderBoard, validateExternalPrerequisites)
from .populate import populate
from .pcbnew_common import fakeKiCADGui

Expand Down Expand Up @@ -274,6 +273,12 @@ def render(input: str, output: str, side: str, renderer: str, projection: str,
"""
Create a rendered image of the PCB using KiCAD's 3D Viewer
"""
if platform.system() == "Windows":
sys.exit("Render functionality is not available on Windows.")

from .renderer import (GuiPuppetError, RenderAction, Side, postProcessCrop,
renderBoard, validateExternalPrerequisites)

try:
validateExternalPrerequisites()

Expand Down

0 comments on commit 942566e

Please sign in to comment.