eric7/QScintilla/APIsManager.py

branch
eric7
changeset 9186
0c28a1670e06
parent 9152
8a68afaf1ba2
equal deleted inserted replaced
9185:8975ed45c22d 9186:0c28a1670e06
174 apifiles = sorted(Preferences.getEditorAPI( 174 apifiles = sorted(Preferences.getEditorAPI(
175 self.__language, self.__projectType)) 175 self.__language, self.__projectType))
176 if self.__apifiles != apifiles: 176 if self.__apifiles != apifiles:
177 needsPreparation = True 177 needsPreparation = True
178 for apifile in apifiles: 178 for apifile in apifiles:
179 apifilePath = pathlib.Path(apifile)
179 if ( 180 if (
180 pathlib.Path(apifile).stat().st_mtime > 181 apifilePath.exists() and
182 apifilePath.stat().st_mtime >
181 preparedAPIsModified 183 preparedAPIsModified
182 ): 184 ):
183 needsPreparation = True 185 needsPreparation = True
184 break 186 break
185 187

eric ide

mercurial