use os.path.exists instead of os.access

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1402828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-10-27 17:42:45 +00:00
parent a00e1ab23d
commit 770b1e3dd2
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ def checkJavadocpathFull(path, failOnMissing=True):
raise RuntimeError('broken javadocs links found!')
def testDemo(isSrc, version, jdk):
if (os.access('index', os.F_OK)):
if os.path.exists('index'):
shutil.rmtree('index') # nuke any index from any previous iteration
print(' test demo with %s...' % jdk)