Setup issues. What to do?

Jr. King n at n.com
Tue May 18 10:52:43 EDT 1999


I have this code thus far

#include "stdafx.h"
#include "python.h"
#include "stdio.h"
#include <iostream.h>  /*works fine even though someone thought there would
be c++ vs c error*/

int main(int argc, char* argv[])
{
 Py_Initialize();
 char input[200];
 int ret;
 FILE *fp;
 fp = fopen("miniedit.py","r+");
 if(fp == NULL)
  cout<<"Didn't open file";
 else{
  ret = PyRun_AnyFile(fp,"beer.py");
  cout<<ret<<\n;
  fclose(fp);
  Py_Exit(0);
 }
 return 0;
}

Problem is though I get this error
Traceback (innermost last):
  File "beer.py", line 17, in ?
ImportError: No module named stdwin
-1
Press any key to continue

How do I setup my path and stuff like that so python can do its imports.
Win 9x/NT wise that is.







More information about the Python-list mailing list