On Wed, 21 Sep 2005, Bob Nienhuis wrote:
> When I do:
> import sys
> sys.exit(0)
> I get:
> Traceback (most recent call last):
> File "C:\Python24\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py",
> line 141, in fire
> rc = apply(binding.handler, args)
> File "C:\Python24\Lib\site-packag
Just tried again. Got:
>>> import sys
>>> sys.exit()
Firing event 'ProcessEnter' failed.
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 141, in fire
rc = apply(binding.handler, args)
File "C:\Python24\Lib\site-packages\pyt
When I do:
import sys
sys.exit(0)
I get:
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 141, in fire
rc = apply(binding.handler, args)
File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 478,
Hi Bob,
Bob, when you see these kinds of errors, please don't paraphrase the error
message. You mentioned:
> > When I call:
> > import sys
> > sys.exit()
> > I get a traceback error saying it needs more input
Instead of putting the error in your own, just copy-and-paste the error.
Don't worry
For exit:
You need to put an argument (more input) :
import sys
sys.exit(0)
The argument of exit is the return value of your script (0 = okay,
other = problem).
sys.path is an attribute (of type list) of sys not a function.
So don't put () after path.
I hope it will help.
Damien.
Bob Nienhuis