summaryrefslogtreecommitdiffstats
path: root/lib/kross/python/pythoninterpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/python/pythoninterpreter.cpp')
-rw-r--r--lib/kross/python/pythoninterpreter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kross/python/pythoninterpreter.cpp b/lib/kross/python/pythoninterpreter.cpp
index 23f4b8fb..ded5dbc9 100644
--- a/lib/kross/python/pythoninterpreter.cpp
+++ b/lib/kross/python/pythoninterpreter.cpp
@@ -122,14 +122,14 @@ PythonInterpreter::PythonInterpreter(Kross::Api::InterpreterInfo* info)
// Set the extended sys.path.
PySys_SetPath( (char*) path.latin1() );
- krossdebug(TQString("Python ProgramName: %1").tqarg(Py_GetProgramName()));
- krossdebug(TQString("Python ProgramFullPath: %1").tqarg(Py_GetProgramFullPath()));
- krossdebug(TQString("Python Version: %1").tqarg(Py_GetVersion()));
- krossdebug(TQString("Python Platform: %1").tqarg(Py_GetPlatform()));
- krossdebug(TQString("Python Prefix: %1").tqarg(Py_GetPrefix()));
- krossdebug(TQString("Python ExecPrefix: %1").tqarg(Py_GetExecPrefix()));
- krossdebug(TQString("Python Path: %1").tqarg(Py_GetPath()));
- krossdebug(TQString("Python System Path: %1").tqarg(path));
+ krossdebug(TQString("Python ProgramName: %1").arg(Py_GetProgramName()));
+ krossdebug(TQString("Python ProgramFullPath: %1").arg(Py_GetProgramFullPath()));
+ krossdebug(TQString("Python Version: %1").arg(Py_GetVersion()));
+ krossdebug(TQString("Python Platform: %1").arg(Py_GetPlatform()));
+ krossdebug(TQString("Python Prefix: %1").arg(Py_GetPrefix()));
+ krossdebug(TQString("Python ExecPrefix: %1").arg(Py_GetExecPrefix()));
+ krossdebug(TQString("Python Path: %1").arg(Py_GetPath()));
+ krossdebug(TQString("Python System Path: %1").arg(path));
// Initialize the main module.
d->mainmodule = new PythonModule(this);
@@ -179,7 +179,7 @@ PythonInterpreter::PythonInterpreter(Kross::Api::InterpreterInfo* info)
PyObject* pyrun = PyRun_String(s.latin1(), Py_file_input, moduledict.ptr(), moduledict.ptr());
if(! pyrun) {
Py::Object errobj = Py::value(Py::Exception()); // get last error
- throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("Failed to prepare the __main__ module: %1").tqarg(errobj.as_string().c_str())) );
+ throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("Failed to prepare the __main__ module: %1").arg(errobj.as_string().c_str())) );
}
Py_XDECREF(pyrun); // free the reference.