Skip to content

Commit 0de0527

Browse files
committed
Defer libjigsaw init., to isolate loadlibrary issues
1 parent 1c46359 commit 0de0527

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jigsawpy/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* JIGSAW: Interface to the JIGSAW meshing library.
1414
------------------------------------------------------------
1515
*
16-
* Last updated: 04 Aug., 2025
16+
* Last updated: 10 Aug., 2025
1717
*
1818
* Copyright 2019-2025
1919
* Darren Engwirda
@@ -59,7 +59,7 @@
5959
from jigsawpy.def_t import jigsaw_def_t
6060
from jigsawpy.prj_t import jigsaw_prj_t
6161

62-
from jigsawpy import jigsaw, libsaw
62+
from jigsawpy import jigsaw
6363

6464
from jigsawpy.loadmsh import loadmsh
6565
from jigsawpy.savemsh import savemsh
@@ -135,18 +135,18 @@ class lib:
135135
@staticmethod
136136
def jigsaw(opts, geom, mesh, init=None,
137137
hfun=None):
138-
138+
from jigsawpy import libsaw
139139
return libsaw.jigsaw(opts, geom,
140140
mesh,
141141
init, hfun)
142142

143143
@staticmethod
144144
def tripod(opts, init, tria, geom=None):
145-
145+
from jigsawpy import libsaw
146146
return libsaw.tripod(opts, init,
147147
tria, geom)
148148

149149
@staticmethod
150150
def marche(opts, ffun):
151-
151+
from jigsawpy import libsaw
152152
return libsaw.marche(opts, ffun)

0 commit comments

Comments
 (0)