Closer [ci skip]
This commit is contained in:
18
scripts/dump-mods.py
Executable file
18
scripts/dump-mods.py
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# dump all modules (deduped) given a specific module
|
||||
#
|
||||
# args
|
||||
# $1 - module to dump all modules underneath (inclusive)
|
||||
# $2 - module heirarchy file
|
||||
|
||||
import sys
|
||||
import json
|
||||
|
||||
|
||||
mod_name = sys.argv[1]
|
||||
mod_file = sys.argv[2]
|
||||
|
||||
# open file
|
||||
with open(mod_file, 'r') as modFile:
|
||||
#print(json.load(modFile))
|
||||
Reference in New Issue
Block a user