summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-10-21 13:22:19 +0200
committerGitHub <noreply@github.com>2022-10-21 13:22:19 +0200
commit09dbd29045621dc74f478b68e3a2848908ff70e8 (patch)
tree8554b5f5ee0818fcb9403335f73ebf56f87b5fb4 /script
parent15dd079792ce8e6b37856450f9e4a928f11b3549 (diff)
downloadpylint-git-09dbd29045621dc74f478b68e3a2848908ff70e8.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 a1c2df2cd..4502f824d 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() -> None: