diff --git a/scripts/docs_get_providers_list.py b/scripts/docs_get_providers_list.py index 05694c91d..7c90a4661 100644 --- a/scripts/docs_get_providers_list.py +++ b/scripts/docs_get_providers_list.py @@ -48,7 +48,9 @@ def validate_overview_is_complete(documented_providers): def validate_all_providers_are_documented(documented_providers): - sys.path.insert(0, '..') + current_dir = os.path.dirname(os.path.abspath(__file__)) + parent_dir = os.path.dirname(current_dir) + sys.path.insert(0, parent_dir) documented_providers = [provider.lower() for provider in documented_providers] from keep.providers.providers_factory import ProvidersFactory