diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2022-10-21 13:34:41 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-19 15:50:34 +0100 |
commit | 8226a8eb427d30708675d0dc46a96f52b51cc511 (patch) | |
tree | 201806220e14469528de4f50e25472d70d1fabed /script | |
parent | 52f6d2d7722db383af035be929f18af5e9fe8cd5 (diff) | |
download | astroid-git-8226a8eb427d30708675d0dc46a96f52b51cc511.tar.gz |
Use relative paths in create_contributor_list.py
Diffstat (limited to 'script')
-rw-r--r-- | script/create_contributor_list.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/script/create_contributor_list.py b/script/create_contributor_list.py index 6e95948b..88559b44 100644 --- a/script/create_contributor_list.py +++ b/script/create_contributor_list.py @@ -6,9 +6,14 @@ from pathlib import Path from contributors_txt import create_contributors_txt -ASTROID_BASE_DIRECTORY = Path(__file__).parent.parent -ALIASES_FILE = ASTROID_BASE_DIRECTORY / "script/.contributors_aliases.json" -DEFAULT_CONTRIBUTOR_PATH = ASTROID_BASE_DIRECTORY / "CONTRIBUTORS.txt" +CWD = Path(".").absolute() +ASTROID_BASE_DIRECTORY = Path(__file__).parent.parent.absolute() +ALIASES_FILE = ( + ASTROID_BASE_DIRECTORY / "script/.contributors_aliases.json" +).relative_to(CWD) +DEFAULT_CONTRIBUTOR_PATH = (ASTROID_BASE_DIRECTORY / "CONTRIBUTORS.txt").relative_to( + CWD +) def main(): |