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-10-21 13:52:38 +0200 |
commit | 3329d231ce2e30b1838565659c28e6274efacd17 (patch) | |
tree | 19efbe033349b2fca1683406d535ee2c82d1ba9b /script/create_contributor_list.py | |
parent | 1a074cf66fc4fdb6714fac7afb14f9e7457cd704 (diff) | |
download | astroid-git-3329d231ce2e30b1838565659c28e6274efacd17.tar.gz |
Use relative paths in create_contributor_list.py
Diffstat (limited to 'script/create_contributor_list.py')
-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(): |