diff --git a/.github/ISSUE_TEMPLATE/sample_issue_generator.py b/.github/ISSUE_TEMPLATE/sample_issue_generator.py index 964a8f1de..eafffcc4d 100644 --- a/.github/ISSUE_TEMPLATE/sample_issue_generator.py +++ b/.github/ISSUE_TEMPLATE/sample_issue_generator.py @@ -1,8 +1,9 @@ -import re import yaml +import os # Read the CODEOWNERS file -with open("../CODEOWNERS", "r") as file: +codeowners_path = os.path.join(os.path.dirname(__file__), "..", "CODEOWNERS") +with open(codeowners_path, "r") as file: lines = file.readlines() # Parse the CODEOWNERS file to extract areas and their paths