src/eric7/Templates/TemplateViewer.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9576
be9f8e7e42e0
child 9653
e67609152c5e
--- a/src/eric7/Templates/TemplateViewer.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/Templates/TemplateViewer.py	Sun Dec 18 19:33:46 2022 +0100
@@ -15,7 +15,7 @@
 from PyQt6.QtCore import QCoreApplication, QFile, QIODevice, Qt
 from PyQt6.QtWidgets import QApplication, QDialog, QMenu, QTreeWidget, QTreeWidgetItem
 
-from eric7 import Preferences, Utilities
+from eric7 import Globals, Preferences
 from eric7.EricGui import EricPixmapCache
 from eric7.EricWidgets import EricFileDialog, EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
@@ -972,7 +972,7 @@
         @rtype bool
         """
         if filename is None:
-            filename = os.path.join(Utilities.getConfigDir(), "eric7templates.ecj")
+            filename = os.path.join(Globals.getConfigDir(), "eric7templates.ecj")
 
         return self.__templatesFile.writeFile(filename)
 
@@ -985,10 +985,10 @@
         """
         if filename is None:
             # new JSON based file first
-            filename = os.path.join(Utilities.getConfigDir(), "eric7templates.ecj")
+            filename = os.path.join(Globals.getConfigDir(), "eric7templates.ecj")
             if not os.path.exists(filename):
                 # old XML based file second
-                filename = os.path.join(Utilities.getConfigDir(), "eric7templates.e4c")
+                filename = os.path.join(Globals.getConfigDir(), "eric7templates.e4c")
                 if not os.path.exists(filename):
                     return
 

eric ide

mercurial