PythonWin working, but stuck on first script :-(

Neil Hodgson neilh at hare.net.au
Fri Mar 3 08:04:20 EST 2000


> def maiin():
> ...
>  if __name__=='__main__':
>       main()

  You spelled "main" wrong when defining it.

>>> Traceback (innermost last):
  File "C:\Program Files\Python\Pythonwin\pywin\framework\intpyapp.py", line
305, in OnViewOptions
    ...

   This seems to happen if you are operating in a directory other than the
default start up directory and something you need did not get initialised.
Try starting PythonWin, opening up the the View | Options dialog, press OK
and then open and run your code. I really should work out a repro case for
this so we can get Mark to fix it.

   Neil





More information about the Python-list mailing list