Mercurial > hg > vampy
comparison PyPlugScanner.cpp @ 8:3af6b5990ad8
more examples and some bug fixes
author | fazekasgy |
---|---|
date | Fri, 13 Jun 2008 16:50:00 +0000 |
parents | a4c955e9a70b |
children | 7d28bed0864e |
comparison
equal
deleted
inserted
replaced
7:a4c955e9a70b | 8:3af6b5990ad8 |
---|---|
138 | 138 |
139 //Create an instance | 139 //Create an instance |
140 PyObject *pyInstance = PyObject_CallObject(pyClass, NULL); | 140 PyObject *pyInstance = PyObject_CallObject(pyClass, NULL); |
141 //cerr << "__(getInstance) PyPlugin Class: " << m_class << " successfully created.__" << endl; | 141 //cerr << "__(getInstance) PyPlugin Class: " << m_class << " successfully created.__" << endl; |
142 return pyInstance; | 142 return pyInstance; |
143 } else return NULL; | 143 } |
144 else { | |
145 cerr << "ERROR: callable plugin class could not be found in source: " << classname << endl | |
146 << "Hint: plugin source filename and plugin class name must be the same." << endl; | |
147 PyErr_Print(); | |
148 return NULL; | |
149 } | |
144 } | 150 } |
145 | 151 |
146 | 152 |
147 | 153 |
148 // Return a list of files in dir with given extension | 154 // Return a list of files in dir with given extension |