src/eric7/HelpViewer/HelpViewerWidget.py

branch
eric7
changeset 10926
9ef616cd220d
parent 10804
8fe0a5226fd5
child 11006
a671918232f3
equal deleted inserted replaced
10925:22c3928a1ab5 10926:9ef616cd220d
34 34
35 WEBENGINE_AVAILABLE = True 35 WEBENGINE_AVAILABLE = True
36 except ImportError: 36 except ImportError:
37 WEBENGINE_AVAILABLE = False 37 WEBENGINE_AVAILABLE = False
38 38
39 from eric7 import Globals, Preferences 39 from eric7 import EricUtilities, Preferences
40 from eric7.EricGui import EricPixmapCache 40 from eric7.EricGui import EricPixmapCache
41 from eric7.EricWidgets import EricFileDialog, EricMessageBox 41 from eric7.EricWidgets import EricFileDialog, EricMessageBox
42 from eric7.EricWidgets.EricApplication import ericApp 42 from eric7.EricWidgets.EricApplication import ericApp
43 from eric7.EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget 43 from eric7.EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget
44 from eric7.EricWidgets.EricToolButton import EricToolButton 44 from eric7.EricWidgets.EricToolButton import EricToolButton
683 Private method to determine the name of the QtHelp collection file. 683 Private method to determine the name of the QtHelp collection file.
684 684
685 @return path of the QtHelp collection file 685 @return path of the QtHelp collection file
686 @rtype str 686 @rtype str
687 """ 687 """
688 qthelpDir = os.path.join(Globals.getConfigDir(), "qthelp") 688 qthelpDir = os.path.join(EricUtilities.getConfigDir(), "qthelp")
689 if not os.path.exists(qthelpDir): 689 if not os.path.exists(qthelpDir):
690 os.makedirs(qthelpDir, exist_ok=True) 690 os.makedirs(qthelpDir, exist_ok=True)
691 return os.path.join(qthelpDir, "eric7help.qhc") 691 return os.path.join(qthelpDir, "eric7help.qhc")
692 692
693 @pyqtSlot(str) 693 @pyqtSlot(str)

eric ide

mercurial