__author__ = "Oleg Broytman <phd@phdru.name>"
__copyright__ = "Copyright (C) 2004-2020 PhiloSoft Design"
-import os, shutil, filecmp
+import filecmp
+import os
+import shutil
os.umask(0022) # octal; -rw-r--r--
from m_lib.m_path import get_homedir
if not os.path.exists(fname):
return
- if fname in ('mailcap', 'mc.ext', 'menu') and os.path.exists(fname):
+ if fname in ('mailcap', 'mc.ext', 'menu'):
file = open(fname, 'r')
text = file.read()
file.close()
file.write(text)
file.close()
- elif fname == 'vimrc' and os.path.exists(fname):
+ elif fname == 'vimrc':
file = open('vimrc', 'r')
text = file.read()
file.close()