diff --git a/SConstruct b/SConstruct index d16117956ff..fe51a36acfb 100644 --- a/SConstruct +++ b/SConstruct @@ -242,7 +242,7 @@ def findVersion( root , choices ): def choosePathExist( choices , default=None): for c in choices: - if os.path.exists( c ): + if c != None and os.path.exists( c ): return c return default