Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/available_software/available_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
Python script to generate an overview of available modules across different clusters, in MarkDown format.

@author: Michiel Lachaert (Ghent University)
@author: Lukas Barragan Torres (Ghent University)
@author: Kenneth Hoste (Ghent University)
"""
import argparse
import json
import os
import re
import shutil
import subprocess
import time
from pathlib import Path
Expand Down Expand Up @@ -403,6 +406,9 @@ def generate_detail_pages(json_path, dest_path, generated_time_yml) -> None:
"""
Generate all the detailed pages for all the software that is available.
"""
# cleanup target directory first, to start from scratch, since software may have been removed
shutil.rmtree(dest_path)
os.makedirs(dest_path)

with open(json_path) as json_data:
data = json.load(json_data)
Expand Down
Loading