git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13278 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-03-23 23:30:50 +00:00
parent 94d653c282
commit 84a5ec39ec
168 changed files with 1313 additions and 1218 deletions

View File

@ -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;
}