From c557171fb720fbfb66f2dfa684453e566362cbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Mon, 4 Apr 2016 03:41:23 -0500 Subject: [PATCH] Includes the folder documentation in distributables --- src/setup.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/setup.py b/src/setup.py index e062828..1a344f4 100644 --- a/src/setup.py +++ b/src/setup.py @@ -46,16 +46,16 @@ def get_data(): ]+get_sounds()+get_locales()+get_documentation()+accessible_output2.find_datafiles()+enchant.utils.win32_data_files()+get_architecture_files()+sound_lib.find_datafiles() -def get_documentation (): return [] -# answer = [] -# depth = 6 -# for root, dirs, files in os.walk('documentation'): -# if depth == 0: -# break -# new = (root, glob(os.path.join(root, "*.html"))) -# answer.append(new) -# depth -= 1 -# return answer +def get_documentation (): + answer = [] + depth = 6 + for root, dirs, files in os.walk('documentation'): + if depth == 0: + break + new = (root, glob(os.path.join(root, "*.html"))) + answer.append(new) + depth -= 1 + return answer def get_sounds(): return [] # answer = []