[Zodb-checkins] SVN: ZODB/trunk/buildout.cfg Don't remove tmp from parts on startup. Doing so causes problems when

Jim Fulton jim at zope.com
Sat Nov 15 17:16:46 EST 2008


Log message for revision 92991:
  Don't remove tmp from parts on startup. Doing so causes problems when
  running layers in separate parallel processes.
  

Changed:
  U   ZODB/trunk/buildout.cfg

-=-
Modified: ZODB/trunk/buildout.cfg
===================================================================
--- ZODB/trunk/buildout.cfg	2008-11-15 22:15:46 UTC (rev 92990)
+++ ZODB/trunk/buildout.cfg	2008-11-15 22:16:46 UTC (rev 92991)
@@ -7,11 +7,9 @@
 recipe = zc.recipe.testrunner
 eggs = ZODB3
 initialization = 
-  import os, tempfile, shutil, stat
-  [[os.chmod(os.path.join(path, f), stat.S_IWUSR) for f in files]
-    for (path, dirs, files) in os.walk('tmp')]
-  if os.path.exists('tmp'): shutil.rmtree('tmp')
-  os.mkdir('tmp')
+  import os, tempfile
+  try: os.mkdir('tmp')
+  except: pass
   tempfile.tempdir = os.path.abspath('tmp')
 
 [scripts]



More information about the Zodb-checkins mailing list