def mooseWriteKkit(modelpath, filepath, sceneitems={}): """Writes loded model under modelpath to a file in Kkit format. (inner helper function for moose.writeKkit)""" global kkitImport_, kkitImportErr_ if not kkitImport_: raise ImportError("Kkit support could not be enabled becase %s." % kkitImportErr_) return _writeKkit.mooseWriteKkit(modelpath, filepath, sceneitems)
def mooseWriteKkit(modelpath, filepath,sceneitems={}): """Writes loded model under modelpath to a file in Kkit format. keyword arguments:\n modelpath -- model path in moose \n filepath -- Path of output file. """ global kkitImport_, kkitImport_err_ if not kkitImport_: print( '[WARN] Could not import module to enable this function' ) print( '\tError was %s' % kkitImport_error_ ) return False return _writeKkit.mooseWriteKkit(modelpath, filepath,sceneitems)