diff options
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r-- | gerber/render/cairo_backend.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index d895e5c..1d168ca 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -17,7 +17,10 @@ from .render import GerberContext
-import cairo
+try:
+ import cairo
+except ImportError:
+ import cairocffi as cairo
from operator import mul
import math
@@ -233,4 +236,4 @@ class GerberCairoContext(GerberContext): self.surface.finish()
self.surface_buffer.flush()
return self.surface_buffer.read()
-
\ No newline at end of file +
|