From ef26caaf57ccb4d3dbd7c31c8b9c525002ff53e7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 13 Jan 2020 17:01:57 +0000 Subject: [PATCH] WIP parser script --- scripts/jantoran.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/jantoran.py diff --git a/scripts/jantoran.py b/scripts/jantoran.py new file mode 100755 index 0000000..853e17e --- /dev/null +++ b/scripts/jantoran.py @@ -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])