#include "python.h"
#include <iostream>

using python::Python;

int main(int argc, char *argv[])
{
   int res;
   Python * interpreter = Python::Instance();
   interpreter->set_argv(argc,argv);
   cout << "     program name: " << interpreter->get_program_name()  << endl;
   cout << "           prefix: " << interpreter->get_prefix()  << endl;
   cout << "      exec prefix: " << interpreter->get_exec_prefix()  << endl;
   cout << "program full path: " << interpreter->get_program_full_path() << endl;
   cout << "             path: " << interpreter->get_path()  << endl;
   cout << "          version: " << interpreter->get_version() << endl;
   cout << "         platform: " << interpreter->get_platform() << endl;
   cout << "        copyright: " << interpreter->get_copyright()  << endl;
   cout << "         compiler: " << interpreter->get_compiler()  << endl;
   cout << "       build info: " << interpreter->get_build_info() << endl;
}


syntax highlighted by Code2HTML, v. 0.9.1