]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Only process vimrc if it exists.
authorOleg Broytman <phd@phdru.name>
Wed, 25 Feb 2009 20:06:59 +0000 (20:06 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 25 Feb 2009 20:06:59 +0000 (20:06 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@80 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

dotfiles2html/dotfiles2html.py

index ff1d989ccfcaea1bf2e4fdd32ea2c7a71cf02559..5957c324baef4b77aa257ffef993b213b54b9cc8 100755 (executable)
@@ -58,7 +58,7 @@ ft_len = len(file_types)
 for i, (fname, ftype) in enumerate(file_types):
    if os.path.exists('.' + fname) and not os.path.exists(fname):
       shutil.copy2('.' + fname, fname)
-   if fname == 'vimrc':
+   if fname == 'vimrc' and os.path.exists(fname):
       file = open('vimrc', 'r')
       text = file.read()
       file.close()