Commits

Juan BC  committed 564c52c

test 5

  • Participants
  • Parent commits 30ccc42

Comments (0)

Files changed (1)

     """
     global _tempdir
     
-    def reset(app, ex):
-        if _tempdir != None and os.path.isdir(_tempdir):
-            shutil.rmtree(_tempdir) 
-        if ex:
-            raise ex
     
     app.add_config_value("tempdir", "_temp", "")
     
     _tempdir = app.config["tempdir"]
-    reset(app, None)
+    
+    if _tempdir != None and os.path.isdir(_tempdir):
+            shutil.rmtree(_tempdir) 
     os.mkdir(_tempdir)
-    app.connect("build-finished", reset)
+    
+    
 
     
 #===============================================================================