Skip to content

Commit

Permalink
Use relative paths in create_contributor_list.py (#7656)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Oct 21, 2022
1 parent c2d42ba commit 1579c43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/create_contributor_list.py
Expand Up @@ -6,9 +6,10 @@

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

0 comments on commit 1579c43

Please sign in to comment.