.pyc files...
Dan Perl
danperl at rogers.com
Sun Nov 14 22:47:14 EST 2004
Ok, this thread has been going on long enough in this direction so I don't
feel too self-conscious plugging my project (http://pyfmf.sourceforge.net/).
I have yet another solution to this problem and my solution is
platforms-independent. Look especially at the "Mini Tutorial" on
http://pyfmf.sourceforge.net/zago.html. It shows exactly how you can clean
up the .pyc and the .pyo files in a set of directory trees. And as always,
I am interested in hearing opinions.
Dan
"Mike Meyer" <mwm at mired.org> wrote in message
news:x7wtwolygl.fsf at guru.mired.org...
> Christos "TZOTZIOY" Georgiou <tzot at sil-tec.gr> writes:
>
>> On 14 Nov 2004 13:30:38 GMT, rumours say that Nick Craig-Wood
>> <nick at craig-wood.com> might have written:
>>
>>>This *is* bullet proof though
>>>
>>> find . -name '*.pyc' -print0 | xargs -0 rm -f
>>>
>>>And if you don't want an error when there aren't any files
>>>
>>> find . -name '*.pyc' -print0 | xargs -0r rm -f
>>>
>>>End unix sysadmin lecture ;-)
>>
>> Minor detail: these are the GNU versions of 'find' and 'xargs' in the
>> above example; the traditional UNIX ones do not have the -print0 and -0
>> options, respectively.
>
> Hmm. My copy of the find and xargs sources which have those features
> both have University of California copyrights on them.
>
> <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