Skip to content
Snippets Groups Projects
Commit c470ad54 authored by lche0021's avatar lche0021
Browse files

generated all modules list in TARGET_MODULEPATH

parent 8653a50d
No related branches found
No related tags found
2 merge requests!464Fix listdeps,!442Smoke test
#!/bin/bash
TARGET_MODULEPATH="/usr/local/Modules/modulefiles"
OUTPUT_PATH="application_list.txt"
echo "" > $OUTPUT_PATH
MODULEPATH=$TARGET_MODULEPATH module avail -t 2>&1 | python -c "
import sys
with open('$OUTPUT_PATH', 'w') as fout:
for line in sys.stdin:
linelist = line.split('/')
if len(linelist) != 2:
continue
linelist[-1] = linelist[-1].replace('(default)','')
fout.write('/'.join(linelist))
"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment