On Wed, May 03, 2006 at 04:10:55PM -0700, Sean Perry wrote: > > Luke Plant wrote: > > On Wednesday 03 May 2006 17:51, Kenneth Gonsalves wrote: > > > >> when making major upgrades, sometimes old .pyc files remain giving > >> errors like this. Nuking subversion is the best solution > > > > Or, if you use *nix this will be a bit less drastic and faster: > > > > find your/django/src/dir -name '*.pyc' | xargs rm > > > > Luke > > > > or without the pipe: find /path -name '*.pyc' -exec rm {} \;
That will then fire off a reperate process for every file, that's non-efficient. Luke's origional command is much better for the environment! Though, it should really be: find your/django/src/dir -name '*.pyc' -print0 | xargs -0 rm xargs will then populate rm with a whole bunch of files to remove, and so rm gets run less often, which is good. Less processes are the way forwards! Cheers, -- Brett Parker --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---