diff options
Diffstat (limited to 'lib/kross/python/pythonscript.cpp')
-rw-r--r-- | lib/kross/python/pythonscript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kross/python/pythonscript.cpp b/lib/kross/python/pythonscript.cpp index 5c2dec8b..d7835d52 100644 --- a/lib/kross/python/pythonscript.cpp +++ b/lib/kross/python/pythonscript.cpp @@ -107,7 +107,7 @@ void PythonScript::initialize() // simply access the ScriptContainer itself from within // python scripting code. Py::Dict moduledict = d->m_module->getDict(); - moduledict["self"] = PythonExtension::toPyObject( m_scriptcontainer ); + moduledict["self"] = PythonExtension::toPyObject( (Kross::Api::Object::Ptr)m_scriptcontainer ); //moduledict["parent"] = PythonExtension::toPyObject( m_manager ); /* @@ -129,7 +129,7 @@ void PythonScript::initialize() // Compile the python script code. It will be later on request // executed. That way we cache the compiled code. PyObject* code = 0; - bool restricted = m_scriptcontainer->getOption("restricted", TQVariant(false,0), true).toBool(); + bool restricted = m_scriptcontainer->getOption("restricted", TQVariant(false), true).toBool(); krossdebug( TQString("PythonScript::initialize() name=%1 restricted=%2").arg(m_scriptcontainer->getName()).arg(restricted) ); if(restricted) { |