Hi to all.
May be someone do class inheritance in Python/C API, I know how create
superclass/subclass. But how I can initialize superclass from subclass
initializer?
struct SuperClass {
PyObject_HEAD;
//...
};
struct SubClass {
PyObject_HEAD;
//...
};
static int SubClassInit(SubC
I found solution:
Py_NoSiteFlag = 1;
Py_FrozenFlag = 1;
Py_IgnoreEnvironmentFlag = 1;
Py_SetPythonHome("");
Py_SetProgramName("");
--
http://mail.python.org/mailman/listinfo/python-list
I made frozen modules and link this modules with my program.
PyImport_FrozenModules = frozen_modules;
Py_Initialize();
I got next message:
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
Traceback (most recent call last
I build python from sources(static version):
./configure --disable-shared
Next I build program with this static library. Program work fine on my
linux, but when I tried run my program on another linux, I got next
message:
Could not find platform independent libraries
Could not find platform depend