使用下一行 pModule = PyImport_Import(pName); 仅从当前目录加载模块。 但我想从其他地方加载,有没有更好的方法? PyRun_SimpleString("import sys\nsys.path.append('<dir>')"); 可以运行...
我的项目结构如下: emb | CMakeLists.txt | main.c | python35.lib | stdlib.zip | _tkinter.pyd | +---include | | | | abstract.h | | accu.h...