Example #1
0
 def _scan_path(self, path, indexer):
     if isdir(path) and is_executable(path):
         for f in os.listdir(path):
             pathprog = join(path, f)
             if not isdir(pathprog) and is_executable(pathprog):
                 match = StartsWithPathProgramMatch(f)
                 indexer.add(f, match)
Example #2
0
 def _scan_path(self, path, indexer):
     if isdir(path) and is_executable(path):
         for f in os.listdir(path):
             pathprog = join(path, f)
             if not isdir(pathprog) and is_executable(pathprog):
                 match = StartsWithPathProgramMatch(f)
                 indexer.add(f, match)
Example #3
0
 def _scan_path_directories(self):
     for pathdir in PATH:
         if isdir(pathdir) and is_executable(pathdir):
             indexer = deskbar.core.Indexer.Indexer()
             self._scan_path(pathdir, indexer)
             self._path_indexers[pathdir] = (indexer, time.time())
Example #4
0
 def _scan_path_directories(self):
     for pathdir in PATH:
         if isdir(pathdir) and is_executable(pathdir):
             indexer = deskbar.core.Indexer.Indexer()
             self._scan_path(pathdir, indexer)
             self._path_indexers[pathdir] = (indexer, time.time())