Commit a787d404 authored by Jan Becker's avatar Jan Becker
Browse files

[doc] Make build-doc run on Python version < 2.6

parent 5662a8af
......@@ -232,9 +232,15 @@ Command-line
def find_doc_dirs(directory):
for root, dirs, files in os.walk(directory, followlinks=True):
if os.path.basename(root) == "descriptions":
yield root
# The followlinks option has been added with Python 2.6
if sys.version_info >= (2,6)
for root, dirs, files in os.walk(directory, followlinks=True):
if os.path.basename(root) == "descriptions":
yield root
else:
for root, dirs, files in os.walk(directory):
if os.path.basename(root) == "descriptions":
yield root
def get_app_rst(searchpaths, appname):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment