win32 python as a dll?

Scott Wolford wolford at enews.nrl.navy.mil
Thu Jul 8 12:24:44 EDT 1999


I'm beginning to question my sanity. Try this:

#include "Python.h"
#include <stdio.h>
int main(int argc, char **argv)
{
//  return Py_Main(argc, argv);
  FILE *file = fopen(argv[1], "rt");
   Py_Initialize();
  PyRun_AnyFile(file, argv[1]);
}






More information about the Python-list mailing list