[C++-sig] Renaming "<string>" filename for PyRun_String

Victor Nakoryakov nail-mail at mail.ru
Tue Apr 4 16:04:45 CEST 2006


Hi all,

I use PyRun_String to run script stored in some file. I can't use 
PyRun_File because of different layouts of FILE struct in my project and 
in python lib. So once I get error I see something like:

Traceback (most recent call last):
   File "<string>", line 14, in ?
NameError: ...

Is it possible somehow to rename "<string>" in this message to the real 
filename?

-- 
Victor (aka nail) Nakoryakov
nail-mail<at>mail<dot>ru

Krasnoznamensk, Moscow, Russia




More information about the Cplusplus-sig mailing list