win32 python as a dll?

Gordon McMillan gmcm at hypernet.com
Thu Jul 8 14:13:22 EDT 1999


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");
>   PyRun_AnyFile(file, argv[0]);
> }

Where's Py_Initialize? Py_Finalize?
 

- Gordon




More information about the Python-list mailing list