summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bce4809)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@103
7bb0bf08-9e0d-0410-b083-
99cee3bf18b8
__revision__ = "$Id$"[5:-2]
__date__ = "$Date$"[7:-2]
__author__ = "Oleg Broytman <phd@phd.pp.ru>"
__revision__ = "$Id$"[5:-2]
__date__ = "$Date$"[7:-2]
__author__ = "Oleg Broytman <phd@phd.pp.ru>"
-__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--
import os, shutil, filecmp
os.umask(0022) # octal; -rw-r--r--
text = file.read()
file.close()
file = open('menu', 'w')
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):
file.close()
if not os.path.exists(fname):