win32 python as a dll?

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


Sorry, forgot a line when I typed it in. I've added it below:

Scott Wolford wrote:

> Here's the smallest case that gives me problems:
> #include "Python.h"
> #include <stdio.h>
> int main(int argc, char **argv)
> {
> //  return Py_Main(argc, argv);
>   FILE *file = fopen(argv[0], "rt");

  Py_Initialize();

>   PyRun_AnyFile(file, argv[0]);
> }





More information about the Python-list mailing list