os.isdir => os.path.isdir

This commit is contained in:
Steve Rowe 2016-05-23 15:32:20 -04:00
parent 8cb2773dc7
commit 54143f5dcb
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ def parse_config():
cwd = os.getcwd()
os.chdir(config.root)
config.root = os.getcwd() # Absolutize root dir
if os.system('git rev-parse') or 3 != len([d for d in ('dev-tools','lucene','solr') if os.isdir(d)]):
if os.system('git rev-parse') or 3 != len([d for d in ('dev-tools','lucene','solr') if os.path.isdir(d)]):
parser.error('Root path "%s" is not a valid lucene-solr checkout' % config.root)
os.chdir(cwd)