WIP parser script
This commit is contained in:
parent
a4ad88ad47
commit
ef26caaf57
1 changed files with 12 additions and 0 deletions
12
scripts/jantoran.py
Executable file
12
scripts/jantoran.py
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
import os,sys
|
||||
|
||||
def parse_folder(p):
|
||||
with open(p + '/info.txt') as f:
|
||||
print(f.readlines())
|
||||
|
||||
def parse_out(p):
|
||||
for folder in os.listdir(p):
|
||||
parse_folder(p + '/' + folder)
|
||||
|
||||
parse_out(sys.argv[1])
|
Loading…
Reference in a new issue