From: Oleg Broytman Date: Sun, 25 Jul 2010 19:41:09 +0000 (+0000) Subject: Unreplace 'mplayerer' back to 'mplayer'. Copyright 2010. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7f84e47a707cd948d8cf83f9a45004c11e21df65;p=phdru.name%2Fphdru.name.git Unreplace 'mplayerer' back to 'mplayer'. Copyright 2010. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@103 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index e9e730e..887eae3 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -4,7 +4,7 @@ __version__ = "$Revision$"[11:-2] __revision__ = "$Id$"[5:-2] __date__ = "$Date$"[7:-2] __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2004-2009 PhiloSoft Design" +__copyright__ = "Copyright (C) 2004-2010 PhiloSoft Design" import os, shutil, filecmp os.umask(0022) # octal; -rw-r--r-- @@ -78,7 +78,9 @@ for i, (fname, ftype) in enumerate(file_types): text = file.read() file.close() file = open('menu', 'w') - file.write(text.replace('mplay', 'mplayer')) + text = text.replace('mplay', 'mplayer') + text = text.replace('mplayerer', 'mplayer') + file.write(text) file.close() if not os.path.exists(fname):