From 09dbd29045621dc74f478b68e3a2848908ff70e8 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 21 Oct 2022 13:22:19 +0200 Subject: [PATCH] Use relative paths in create_contributor_list.py (#7656) --- script/create_contributor_list.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/create_contributor_list.py b/script/create_contributor_list.py index a1c2df2cd7..4502f824d3 100644 --- a/script/create_contributor_list.py +++ b/script/create_contributor_list.py @@ -6,9 +6,10 @@ from contributors_txt import create_contributors_txt -BASE_DIRECTORY = Path(__file__).parent.parent -ALIASES_FILE = BASE_DIRECTORY / "script/.contributors_aliases.json" -DEFAULT_CONTRIBUTOR_PATH = BASE_DIRECTORY / "CONTRIBUTORS.txt" +CWD = Path(".").absolute() +BASE_DIRECTORY = Path(__file__).parent.parent.absolute() +ALIASES_FILE = (BASE_DIRECTORY / "script/.contributors_aliases.json").relative_to(CWD) +DEFAULT_CONTRIBUTOR_PATH = (BASE_DIRECTORY / "CONTRIBUTORS.txt").relative_to(CWD) def main() -> None: