FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 2ed68d92 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1158 29193198-4895-4776-b068-10539e920549
parent baec1c4e
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
# for summarizing it to a teacher or native speaker.
# Reads from progressFile and progressFileBackup.
# Version 1.02 (c) 2011 Silas S. Brown. License: GPL
# Version 1.03 (c) 2011 Silas S. Brown. License: GPL
# Example use:
# python lesson-table.py | ssh some-server 'mutt -e "set record = \"\";" -e "set charset=\"utf-8\"; set send_charset=\"utf-8\"; set content_type=\"text/html\";" to-address -s "Gradint report"' || echo Send failed
......@@ -45,7 +45,7 @@ def wrappable(f):
z = u'\u200b'.encode('utf-8') # zero-width space
return f.replace(os.sep,os.sep+z).replace('_',z+'_')
def checkVariant(l):
if os.sep in l: fname=l[l.rindex(os.sep):]
if os.sep in l: fname=l[l.rindex(os.sep)+1:]
else: fname=l
variants = gradint.variantFiles.get(gradint.samplesDirectory+os.sep+l,[fname])
if fname in variants: return l # ok
......
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