Before the Internet to find os.path.isfile () is used; found some wrong, mainly because incoming parameter is a relative path, not an absolute path.
However, after my experiment found: os.path.isfile () requires incoming parameter is the absolute path ! ! ! !