From c08722cb540fbd62e9865c7f5f0cb2a14b85ae90 Mon Sep 17 00:00:00 2001 From: Jim Fulton <jim@zope.com> Date: Fri, 17 Oct 2008 16:33:01 +0000 Subject: [PATCH] Added logic to make temp files writable before removing them because read-only files can't be removed on windows. --- buildout.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildout.cfg b/buildout.cfg index 795470bc..c3f3a369 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -7,7 +7,9 @@ find-links = http://download.zope.org/distribution/ 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') -- 2.30.9