diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2022-10-21 13:22:19 +0200 |
---|---|---|
committer | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2022-10-21 17:18:40 +0200 |
commit | 1579c43121e7a18794e929c2266eaed15599595c (patch) | |
tree | 384ddfc1bd4d9b1ce43e1c34a1594ebb09f048e8 | |
parent | c2d42bad23d012ff7dee0da3189145d801cc0229 (diff) | |
download | pylint-git-1579c43121e7a18794e929c2266eaed15599595c.tar.gz |
Use relative paths in create_contributor_list.py (#7656)
-rw-r--r-- | script/create_contributor_list.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/create_contributor_list.py b/script/create_contributor_list.py index 9b336a01b..7db3923f5 100644 --- a/script/create_contributor_list.py +++ b/script/create_contributor_list.py @@ -6,9 +6,10 @@ from pathlib import Path 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(): |