Running in Release or Debug version of the python interpreter?

Raphael Zulliger zulli at izh.ch
Tue May 24 08:32:39 EDT 2005


Hi

I have to check wheter a .py script is run within the debug or the 
release version of an embedded python interpreter (in short, wheter 
python24_d.dll or python24.dll is in use).

long version: I'm using ctypes to load my own dll. There exists 2 
version of this dll - a debug and a release version (where one is linked 
against debug C runtime dll and the other to release C runtime dll). Now
I have to change the name of the dll I want to be loaded by ctypes... 
But how can I find out which of the dll I have to load?!

Thanks in advance!
Raphael Zulliger



More information about the Python-list mailing list