Hi Matt, I have downloaded your dot.py and have tried it out. Here is what I do:
homelap-3:sympy comerduncan$ ../matt_dot/dot.py ./sympy/matrices mats usage: grep [-abcDEFGHhIiJLlmnOoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]] [-e pattern] [-f file] [--binary-files=value] [--color=when] [--context[=num]] [--directories=action] [--label] [--line-buffered] [--null] [pattern] [file ...] So, I looked at the source. In particular the function def grep_stream(location): return os.popen( 'find %s -name "*.py" | xargs grep -h -P "^class \w+\([\s\w,]+\)"'%location) Alas, looking at the man page for xargs it seems apparent that the -P argument is meant for xargs whereas the -h argument is meant for grep, right? So, I moved the -P arg to just after xargs and made it have a '1' (otherwise xargs complains) and left the -h arg as is. When I run the script it finishes without complaints. However, the mats.dot file and the mats.pdf are essentially nothing: mats.dot is homelap-3:sympy comerduncan$ cat mats.dot strict digraph G { rankdir=LR; overlap=false; } and not surprisingly the mats.pdf just displays a blank rectangular region. So, what gives? Perhaps I am simply not using it correctly? I am running with python2.7 on my mac (Mountain Lion). All needed routines are installed (macports is great). This little script is cute and probably useful when one is trying to sort out the class dependencies in a given project or just in general trying to understand how things are hung together. Thanks for making this little tool. Comer -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.