It's isfile

It's os.path.isfile instead of is_file.

Change-Id: Ie68e88d4b8a310382795c727ff9824289cbcc3b9
This commit is contained in:
Andreas Jaeger 2014-08-15 14:47:23 +02:00
parent b2ed0359b0
commit f8d8886cc0
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ def generate_index_file():
(path, f, f))
index_file.write('<br/>\n')
if os.path.is_file(os.path.join(get_publish_path(), 'www-index.html')):
if os.path.isfile(os.path.join(get_publish_path(), 'www-index.html')):
index_file.write('<br/>\n')
index_file.write('<a href="www-index.html">list of generated '
'WWW pages</a>\n')