Skip to content

Commit

Permalink
create pde folder (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingness authored Oct 30, 2024
1 parent fb15917 commit 23351d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/to_contribs_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"""

import json
import pathlib
import shutil
from collections import defaultdict

from utils import get_valid_contributions
Expand Down Expand Up @@ -44,7 +46,13 @@ def read_contribs_text(filepath):


if __name__ == "__main__":
contribs_text_file = '../pde/contribs.txt'
pde_folder = pathlib.Path(__file__).parent.parent / 'pde/'
# remove sources folder if it already exists
if pde_folder.is_dir():
shutil.rmtree(pde_folder)
pde_folder.mkdir(parents=True, exist_ok=True)

contribs_text_file = pde_folder / 'contribs.txt'

contributions_list = get_valid_contributions()

Expand Down

0 comments on commit 23351d1

Please sign in to comment.