py_import method

int py_import(
  1. Pointer<Char> path
)

Import a module. The result will be set to py_retval(). -1: error, 0: not found, 1: success

Implementation

int py_import(
  ffi.Pointer<ffi.Char> path,
) {
  return _py_import(
    path,
  );
}