diff --git a/doc/analysis/initial_setup.py b/doc/analysis/initial_setup.py index d249a4fdc07de7cc02ddc64cca69debd6929d949..e9cda25e54412489b5c8b97e5b322232a19e8172 100644 --- a/doc/analysis/initial_setup.py +++ b/doc/analysis/initial_setup.py @@ -1,4 +1,5 @@ import os +from os.path import dirname import json @@ -41,6 +42,8 @@ class InitialSetup: 'Delete core context and reload it': InitialSetup.delete_core_context() } + self.folder_test_suites = dirname(dirname(dirname(__file__))) + self.total_files = -1 self.files_with_setup = -1 self.files_without_setup = -1 @@ -302,7 +305,7 @@ class InitialSetup: print() def generate_dictionaries(self): - folder = "/home/fla/Documents/workspace/bdd/ngsi-ld-test-suite/doc/files" + folder = f'{self.folder_test_suites}/doc/files' attribute = "setup" self.files_with_setup, self.files_without_setup = self.get_property_values(folder, attribute)