~grgi/zw.vogon/results-ng

« back to all changes in this revision

Viewing changes to src/zw/vogon/question/results/latex.py

  • Committer: Gregor Giesen
  • Date: 2009-04-30 19:34:11 UTC
  • Revision ID: giesen@zaehlwerk.net-20090430193411-gdxnbdm84y4rs2fq
- results-ng branch started
- remove latex tmp files after creating pdf

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    finally:
145
145
        chdir(cwd)
146
146
 
147
 
        #for i in listdir(tempdir):
 
147
        for i in listdir(tempdir):
148
148
            # XXX Is this safe? If a filename created by mkstemp is
149
149
            # allowed to contain a dot, this filter is not enough.
150
 
            #if i.startswith(texbasedot):
151
 
            #    unlink(os.path.join(tempdir, i))
 
150
            if i.startswith(texbasedot):
 
151
                unlink(os.path.join(tempdir, i))
152
152
 
153
153
    return out
154
154