.pyc files...
Michael Foord
fuzzyman at gmail.com
Mon Nov 15 11:02:37 EST 2004
Mike Meyer <mwm at mired.org> wrote in message news:<x74qjsnj1o.fsf at guru.mired.org>...
> "Simon John" <simoninusa2001 at yahoo.co.uk> writes:
>
> > Stephen Waterbury wrote:
> >
> >> > OK, stupid question, but it's been bothering me for ages.. J
> >> >
> >> > I love Python to bits, but .pyc files always litter my source tree,
> and
> >> > they've always bothered me. ...
>
> >> One solution (on unices, at least):
> >>
> >> alias cleanpy="find . -name '*.pyc' -exec rm {} ';'"
> > or with backticks: rm -rf `find . -name '*.pyc'`
>
> Better with $(: rm -rf $(find . -name '*.pyc').
>
> <mike
The great thing about python is that you can knock up an infinitely
customizable script to do this sort of thing in about 1 minute flat.
Cross platform and crunchy............
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
More information about the Python-list
mailing list