From c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:56:31 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 94844816550ad672ccfcdc25659c625546239998. --- lib/kross/python/pythoninterpreter.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/kross/python/pythoninterpreter.cpp') diff --git a/lib/kross/python/pythoninterpreter.cpp b/lib/kross/python/pythoninterpreter.cpp index ded5dbc93..23f4b8fb4 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").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)); + 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)); // 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").arg(errobj.as_string().c_str())) ); + throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("Failed to prepare the __main__ module: %1").tqarg(errobj.as_string().c_str())) ); } Py_XDECREF(pyrun); // free the reference. -- cgit v1.2.3