From c5fe35598749dea564b8f6174a52bd4ae800e493 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Sun, 14 Aug 2011 19:20:27 +0000
Subject: [PATCH] Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@1203 29193198-4895-4776-b068-10539e920549
---
 gradint-build/src/synth.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gradint-build/src/synth.py b/gradint-build/src/synth.py
index d34ec66..f7e31ae 100644
--- a/gradint-build/src/synth.py
+++ b/gradint-build/src/synth.py
@@ -30,6 +30,7 @@ class Synth(object):
         for v in self.fileCache.values():
             try: os.remove(v)
             except: pass # someone may have removed it already, e.g. cache-synth.py's renaming
+        self.fileCache = {} # essential for the globalEspeakSynth hack (or get crash when try to make multiple lessons to file)
     def makefile_cached(self,lang,text):
         if type(text)==type([]): textKey=repr(text)
         else: textKey=text
-- 
GitLab