From: Oleg Broytman Date: Wed, 25 Feb 2009 20:06:59 +0000 (+0000) Subject: Only process vimrc if it exists. X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=commitdiff_plain;h=2d3ff8bc0a1fce9d0dfc1555b2175492e4a13a99 Only process vimrc if it exists. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@80 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index ff1d989..5957c32 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -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()