Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Danny Yoo
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

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Bob Nienhuis
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

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Bob Nienhuis
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,

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Danny Yoo
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

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Damien Gouteux
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