Commit 81aa2046 authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot
Browse files

Merge topic 'fix-importExportPy-bug'

00ebb91a use .smtk suffix to save model.
8f3c8365 import smtk core modules when using pybind.
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !555
parents 5dc5debb 00ebb91a
......@@ -55,7 +55,7 @@ class TestExportImport(smtk.testing.TestCase):
numModels, 0, 'Must read at least one model to test.')
# Export and then import
ftmp = os.path.join(smtk.testing.TEMP_DIR, str(uuid.uuid4()) + '.json')
ftmp = os.path.join(smtk.testing.TEMP_DIR, str(uuid.uuid4()) + '.smtk')
# Export to ftmp
exp = sess.op('save smtk model')
if smtk.wrappingProtocol() == 'pybind11':
......@@ -41,6 +41,12 @@ will use its operators. ::
import os
import smtk
if smtk.wrappingProtocol() == 'pybind11':
import smtk.common
import smtk.attribute
import smtk.mesh
import smtk.model
activeSession = None
lastOperatorResult = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment