original_docstring:  Checking execution mode is ok on linux, but not enough on windows, since every file with an associated
       program has this flag. Use custom pathext lists to determine executable file extensions. 
docstring: Checking execution mode is ok on linux, but not enough on windows, since every file with an associated
  program has this flag. Use custom pathext lists to determine executable file extensions.
docstring_tokens: Checking execution mode is ok on linux but not enough on windows since every file with an associated program has this flag . Use custom pathext lists to determine executable file extensions .
code: def is_file_executable(file_path: Path) -> bool:
      """ Checking execution mode is ok on linux, but not enough on windows, since every file with an associated
       program has this flag. Use custom pathext lists to determine executable file extensions. """
      is_executable = False
      if platform.system() == "Linux":
          if os.access(str(file_path), os.X_OK):
              is_executable = True
      elif platform.system() == "Windows":
          # don't use PATHEXT - some programs write other filetypes like .py in it...
          path_exts = WIN_EXE_FILE_TYPES
          if file_path.suffix in path_exts:
              is_executable = True
      return is_executable
code_tokens: def is_file_executable ( file_path : Path ) -> bool : is_executable = False if platform . system ( ) == "Linux" : if os . access ( str ( file_path ) , os . X_OK ) : is_executable = True elif platform . system ( ) == "Windows" : path_exts = WIN_EXE_FILE_TYPES if file_path . suffix in path_exts : is_executable = True return is_executable
short_docstring: Checking execution mode is ok on linux, but not enough on windows, since every file with an associated
  program has this flag.
short_docstring_tokens: Checking execution mode is ok on linux but not enough on windows since every file with an associated program has this flag .
comment: """ Checking execution mode is ok on linux, but not enough on windows, since every file with an associated
       program has this flag. Use custom pathext lists to determine executable file extensions. """$SEP$# don't use PATHEXT - some programs write other filetypes like .py in it...
  