Skip to content

Commit

Permalink
Don't use 'is' with a literal
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Aug 26, 2020
1 parent d44c688 commit 92aadc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@ def parse_modeller_dirs(context, modeller, exetype):
def CheckModeller(context):
"""Find Modeller include and library directories"""
modeller = context.env['modeller']
if (modeller is False or modeller is 0) \
if (modeller is False or modeller == 0) \
and (check_pkgconfig(context, pkgconfig_name='modeller',
human_name='MODELLER', env_key='MODELLER') \
or check_modeller_python(context)):
# Assume that modpy.sh script is not necessary
context.env['MODELLER_MODPY'] = ''
return True
context.Message("Checking for MODELLER using 'modeller' scons option...")
if modeller is False or modeller is 0:
if modeller is False or modeller == 0:
context.Result("not found")
return False
# Find MODELLER script
Expand Down

0 comments on commit 92aadc8

Please sign in to comment.