.pyc files...
Mike Meyer
mwm at mired.org
Sun Nov 14 17:48:51 EST 2004
"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
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list