- Give facelift to test_loader. Still to be finished.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@509 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
d462f6d1d3
commit
6a0bf4f444
11 changed files with 145 additions and 37 deletions
|
@ -56,10 +56,9 @@ PythonPolicyManager::get_policy()
|
|||
void
|
||||
PythonPolicyManager::init()
|
||||
{
|
||||
if(_initialized) {
|
||||
_python_policy = std::auto_ptr<PythonPolicy>(0);
|
||||
Py_Finalize();
|
||||
}
|
||||
if(_initialized)
|
||||
// No-op
|
||||
return;
|
||||
|
||||
Py_Initialize();
|
||||
_initialized = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue