Exemplo n.º 1
0
 def __scan(self):
     changes = []
     for pathname in sorted(list_cleanerml_files(local_only=True)):
         pathname = os.path.abspath(pathname)
         (status, myhash) = self.__recognized(pathname)
         if NEW == status or CHANGED == status:
             changes.append([pathname, status, myhash])
     if len(changes) > 0:
         cleaner_change_dialog(changes, self.parent_window)
         for change in changes:
             pathname = change[0]
             myhash = change[2]
             logger.info("remembering CleanerML file '%s'", pathname)
             if os.path.exists(pathname):
                 options.set_hashpath(pathname, myhash)
Exemplo n.º 2
0
 def __scan(self):
     """Look for files and act accordingly"""
     changes = []
     for pathname in sorted(list_cleanerml_files(local_only=True)):
         pathname = os.path.abspath(pathname)
         (status, myhash) = self.__recognized(pathname)
         if NEW == status or CHANGED == status:
             changes.append([pathname, status, myhash])
     if len(changes) > 0:
         cleaner_change_dialog(changes, self.parent_window)
         for change in changes:
             pathname = change[0]
             myhash = change[2]
             logger.info("remembering CleanerML file '%s'", pathname)
             if os.path.exists(pathname):
                 options.set_hashpath(pathname, myhash)