Re: [python-win32] 'exit is not defined'

2011-06-06 Thread Mark Hammond
On 3/06/2011 4:30 PM, Jacob Kruger wrote: What I'm doing is trying to open a text file, but if it's not there, then I tell the code to exit(), and while it works when running the source code using the python executable, after I have run the code through py2exe, and then try testing it, I get t

Re: [python-win32] 'exit is not defined' [SEC=UNCLASSIFIED]

2011-06-05 Thread Andrew MacIntyre
> Jacob Kruger wrote: > > Either way, seems that while did have the import statement higher up in that > file for the sys module, maybe there was something interfering with that, > since when changed that statement to sys.exit() it's now working without > any issues. I think you haven't yet caug

Re: [python-win32] 'exit is not defined'

2011-06-03 Thread sharpblade
rit...' > > > ----- Original Message --- > > Subject: Re: [python-win32] 'exit is not defined' >   From: "Amaury Forgeot d'Arc" >   Date: Fri, 3 Jun 2011 09:43:47 +0200 >     To: Jacob Kruger > >>Hi, >> >>2011/6/3

Re: [python-win32] 'exit is not defined'

2011-06-03 Thread Jacob Kruger
, but not his spirit...' - Original Message ------- Subject: Re: [python-win32] 'exit is not defined' From: "Amaury Forgeot d'Arc" Date: Fri, 3 Jun 2011 09:43:47 +0200 To: Jacob Kruger >Hi, > >2011/6/3 Jacob Kruger : >> What I

[python-win32] 'exit is not defined'

2011-06-02 Thread Jacob Kruger
What I'm doing is trying to open a text file, but if it's not there, then I tell the code to exit(), and while it works when running the source code using the python executable, after I have run the code through py2exe, and then try testing it, I get the following message: Traceback (most recen