Skip to content
Snippets Groups Projects
Commit b94ed096 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

almost final

parent 50c5f0a1
No related branches found
No related tags found
No related merge requests found
Pipeline #2393 passed with stage
in 26 seconds
# coding=UTF-8
from __future__ import print_function
import json, sys
import os.path
import json, os.path
def readin(path, func=lambda x: x.decode('utf8'), orelse=None): # read bytes from path and treat it with func. If path does not exist, return orelse
if os.path.exists(path):
......@@ -22,7 +20,7 @@ if __name__ == '__main__':
data = readin(src_json, json.loads, [{}]) # Load data
lab = header+readin(src_md)+footer # Load text
# Swap placholders
# Swap placholders and write out each version for this class
for ex_no, d in enumerate(data, start=1):
d.update({'lp': unicode(ex_no), 'labno': unicode(i)})
......
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