git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13278 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -154,13 +154,12 @@ void Python::command(int narg, char **arg)
|
||||
//PySys_SetArgv(1,&arg);
|
||||
|
||||
//PyObject *pName = PyString_FromString("__main__");
|
||||
//if (!pName) error->all(FLERR,"Bad pName");
|
||||
//if (!pName) error->Xall(FLERR,"Bad pName");
|
||||
//PyObject *pModule = PyImport_Import(pName);
|
||||
//Py_DECREF(pName);
|
||||
|
||||
PyObject *pModule = PyImport_AddModule("__main__");
|
||||
if (!pModule) error->all(FLERR,"Could not initialize embedded Python");
|
||||
//if (!pModule) error->one(FLERR,"Could not initialize embedded Python");
|
||||
pyMain = (void *) pModule;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user