[Zodb-checkins] SVN: ZODB/trunk/buildout.cfg Added logic to make temp files writable before removing them because
Jim Fulton
jim at zope.com
Fri Oct 17 12:33:03 EDT 2008
Log message for revision 92320:
Added logic to make temp files writable before removing them because
read-only files can't be removed on windows.
Changed:
U ZODB/trunk/buildout.cfg
-=-
Modified: ZODB/trunk/buildout.cfg
===================================================================
--- ZODB/trunk/buildout.cfg 2008-10-17 16:03:33 UTC (rev 92319)
+++ ZODB/trunk/buildout.cfg 2008-10-17 16:33:01 UTC (rev 92320)
@@ -7,7 +7,9 @@
recipe = zc.recipe.testrunner
eggs = ZODB3
initialization =
- import os, tempfile, shutil
+ 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(os.getcwd())]
if os.path.exists('tmp'): shutil.rmtree('tmp')
os.mkdir('tmp')
tempfile.tempdir = os.path.abspath('tmp')
More information about the Zodb-checkins
mailing list