summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-10-21 13:22:19 +0200
committerMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-10-21 17:18:40 +0200
commit1579c43121e7a18794e929c2266eaed15599595c (patch)
tree384ddfc1bd4d9b1ce43e1c34a1594ebb09f048e8 /script
parentc2d42bad23d012ff7dee0da3189145d801cc0229 (diff)
downloadpylint-git-1579c43121e7a18794e929c2266eaed15599595c.tar.gz
Use relative paths in create_contributor_list.py (#7656)
Diffstat (limited to 'script')
-rw-r--r--script/create_contributor_list.py7
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():