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

.

parent e4807d47
No related branches found
No related tags found
No related merge requests found
Pipeline #2379 failed with stage
in 13 seconds
...@@ -14,8 +14,8 @@ if __name__ == '__main__': ...@@ -14,8 +14,8 @@ if __name__ == '__main__':
header_bin = readin('src/header.md') header_bin = readin('src/header.md')
footer_bin = readin('src/footer.md') footer_bin = readin('src/footer.md')
for lab_name in ('lab'+str(x) for x in xrange(7, 1)): for lab_name in ('lab'+str(x) for x in [1,2,3,4,5,6,7]):
dist_lp = 'dist/' + lab_name + '/' dist_lp = 'dist/' + lab_name
src_md = 'src/' + lab_name + '.md' src_md = 'src/' + lab_name + '.md'
if not os.path.exists(src_md): if not os.path.exists(src_md):
...@@ -39,7 +39,7 @@ if __name__ == '__main__': ...@@ -39,7 +39,7 @@ if __name__ == '__main__':
for k, v in d.iteritems(): for k, v in d.iteritems():
plab = plab.replace(u'$%s$' % (k, ), v) plab = plab.replace(u'$%s$' % (k, ), v)
with open(dist_lp+'%s.md' % (ex_no, ), 'wb') as labout: with open(dist_lp+'/%s.md' % (ex_no, ), 'wb') as labout:
labout.write(header_bin) labout.write(header_bin)
labout.write(plab.encode('utf8')) labout.write(plab.encode('utf8'))
labout.write(footer_bin) labout.write(footer_bin)
......
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