From 9a3a7625eaee4535ee3f8512a38421b736a2e27b Mon Sep 17 00:00:00 2001 From: Carl Benson Date: Thu, 23 May 2024 08:36:13 -0400 Subject: [PATCH] Fixed incorrect relative paths set in index.py --- scripts/index.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/index.py b/scripts/index.py index 1d77e31..28479bb 100644 --- a/scripts/index.py +++ b/scripts/index.py @@ -8,9 +8,10 @@ ROOT_PAGE = 'https://docs.aws.amazon.com/config/latest/developerguide/' AWS_MANAGED_RULES_PAGE = ROOT_PAGE + 'managed-rules-by-aws-config.html' -SOURCE_FILE_NAME = Path('config_rule_data.json') -LOCALS_FILE_PATH = Path('..', '..', 'managed_rules_locals.tf') -VARIABLES_FILE_PATH = Path('..', '..', 'managed_rules_variables.tf') +CURRENT_DIR = Path(__file__).resolve().parent +SOURCE_FILE_NAME = Path(CURRENT_DIR, 'config_rule_data.json') +LOCALS_FILE_PATH = Path(CURRENT_DIR, '..', 'managed_rules_locals.tf').resolve() +VARIABLES_FILE_PATH = Path(CURRENT_DIR, '..', 'managed_rules_variables.tf').resolve() if __name__ == '__main__': # Scrape AWS documentation for the latest Config Rules.