parameters: (self, key, val, env)
docstring: Validator to check if Path is a file
docstring_summary: Validator to check if Path is a file
docstring_tokens: Validator to check if Path is a file
function: def PathIsFile(self, key, val, env):
          """Validator to check if Path is a file"""
          if not os.path.isfile(val):
              if os.path.isdir(val):
                  m = 'File path for option %s is a directory: %s'
              else:
                  m = 'File path for option %s does not exist: %s'
              raise SCons.Errors.UserError(m % (key, val))
function_tokens: def PathIsFile ( self , key , val , env ) : if not os . path . isfile ( val ) : if os . path . isdir ( val ) : m = 'File path for option %s is a directory: %s' else : m = 'File path for option %s does not exist: %s' raise SCons . Errors . UserError ( m % ( key , val ) )