Jul-17-2019, 02:42 PM
PyImport_Import() is only a way to run a python import statement from C. I think
PyRun_SimpleString("import foo");is more or less equivalent to
name = PyUnicode_FromString('foo'); PyImport_Import(name);although from my experience, calling the python import statement is more robust.