Change `whole_path` to `os.path.join`