From 2d3ff8bc0a1fce9d0dfc1555b2175492e4a13a99 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 25 Feb 2009 20:06:59 +0000 Subject: [PATCH] Only process vimrc if it exists. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@80 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- dotfiles2html/dotfiles2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5