Hi Stu- On Fri, Jun 11, 2010 at 06:14:58PM +0100, Stuart Henderson wrote: > Hmm. Untested but I suspect if someone runs it as root, it will leave > a .pyc around that pkg_delete won't remove..
The interpreter only leaves .pyc files when it loads modules, not when it executes scripts: $ cat <<EOF > /tmp/foo.py #!/usr/bin/env python2.5 print "foo" EOF $ chmod a+x /tmp/foo.py $ /tmp/foo.py foo $ ls /tmp/foo.pyc ls: /tmp/foo.pyc: No such file or directory So in this case, I think distributing the .pyc is unnecessary. -- Will Maier http://www.lfod.us/~will/