Skip to content

Commit

Permalink
Use relative paths in create_contributor_list.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored and Pierre-Sassoulas committed Nov 19, 2022
1 parent 52f6d2d commit 8226a8e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions script/create_contributor_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@

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():
Expand Down

0 comments on commit 8226a8e

Please sign in to comment.