Try to avoid passing GlobalStorage to Python by value.
This commit is contained in:
parent
aef2b7e9e7
commit
2a231b3532
@ -120,7 +120,7 @@ PythonJob::exec()
|
|||||||
bp::dict calamaresNamespace = bp::extract< bp::dict >( calamaresModule.attr( "__dict__" ) );
|
bp::dict calamaresNamespace = bp::extract< bp::dict >( calamaresModule.attr( "__dict__" ) );
|
||||||
|
|
||||||
calamaresNamespace[ "job" ] = CalamaresPython::PythonJobInterface( this );
|
calamaresNamespace[ "job" ] = CalamaresPython::PythonJobInterface( this );
|
||||||
calamaresNamespace[ "global_storage" ] = JobQueue::instance()->globalStorage();
|
calamaresNamespace[ "global_storage" ] = bp::ptr( JobQueue::instance()->globalStorage() );
|
||||||
|
|
||||||
bp::object result = bp::exec_file( scriptFI.absoluteFilePath().toLocal8Bit().data(),
|
bp::object result = bp::exec_file( scriptFI.absoluteFilePath().toLocal8Bit().data(),
|
||||||
scriptNamespace,
|
scriptNamespace,
|
||||||
|
Loading…
Reference in New Issue
Block a user