Moved proto.py into jobs.py function.
This commit is contained in:
parent
d8503a5ba1
commit
b9adbae4fd
24
src/proto.py
24
src/proto.py
@ -1,24 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
### for now, this is a simple script to import all the yaml files and pretty print it
|
||||
|
||||
import yaml
|
||||
import pprint
|
||||
import sys
|
||||
from os import listdir, chdir
|
||||
from os.path import isfile, dirname, join
|
||||
|
||||
# change the current directory to the meetings directory where all the yaml files are located
|
||||
os.chdir('../meetings/')
|
||||
|
||||
# get a list of all the yaml files
|
||||
yamlfiles = [f for f in os.listdir() if os.path.isfile(f) and ".yaml" in f]
|
||||
|
||||
meeting = []
|
||||
for f in yaml:
|
||||
m = open(f, 'r')
|
||||
|
||||
meeting.append(yaml.load(m))
|
||||
|
||||
# print yaml.load(meeting), used to have sys.out as second before to print to terminal
|
||||
print yaml.dump(yaml.load(m))
|
Loading…
x
Reference in New Issue
Block a user