tracing execution

Mathias Koerber mathias at koerber.org
Wed Feb 26 08:10:01 EST 2003


On Wed, 26 Feb 2003 10:45:16 +0000, Alex Martelli wrote:

> Well, you could duplicate trace.py's functionality yourself -- that's what
> sys.settrace is for.  But what's wrong with trace.py?

I am just a python newbie trying to add some functionality to a mailman
installation.

This is my problem:

# ls -l
total 176
-rwxr-xr-x    1 root     mailman      9231 Feb 26 13:55 MK_add-members.py
[...snip...]

# python /tmp/trace.py -t ./MK_add-members.py [...snipped args...]
__main__(0): ??
__main__(1): ??
MK_add-members.py(0): main()
MK_add-members.py(87): """
MK_add-members.py(89): import sys
MK_add-members.py(90): import os
MK_add-members.py(91): import string
MK_add-members.py(92): import getopt
MK_add-members.py(93): import paths
./MK_add-members.py: Cannot run file './MK_add-members.py' because: No such file or directory

I have no idea why trace.py would start executing the scriptand then claim
it does not exist...


> 
> 
> Alex





More information about the Python-list mailing list