eric7/QScintilla/APIsManager.py

branch
eric7
changeset 9186
0c28a1670e06
parent 9152
8a68afaf1ba2
--- a/eric7/QScintilla/APIsManager.py	Mon Jun 27 17:13:05 2022 +0200
+++ b/eric7/QScintilla/APIsManager.py	Mon Jun 27 18:05:36 2022 +0200
@@ -176,8 +176,10 @@
                     if self.__apifiles != apifiles:
                         needsPreparation = True
                     for apifile in apifiles:
+                        apifilePath = pathlib.Path(apifile)
                         if (
-                            pathlib.Path(apifile).stat().st_mtime >
+                            apifilePath.exists() and
+                            apifilePath.stat().st_mtime >
                             preparedAPIsModified
                         ):
                             needsPreparation = True

eric ide

mercurial