eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9156
aec35836ca4a
parent 9155
2efa8d1312cd
equal deleted inserted replaced
9155:2efa8d1312cd 9156:aec35836ca4a
95 Utilities.getQtBinariesPath(), 95 Utilities.getQtBinariesPath(),
96 Utilities.generateQtToolName('qhelpgenerator') 96 Utilities.generateQtToolName('qhelpgenerator')
97 ) 97 )
98 if Utilities.isWindowsPlatform(): 98 if Utilities.isWindowsPlatform():
99 exe += '.exe' 99 exe += '.exe'
100 dataList.append({ 100 if os.path.exists(exe):
101 "programEntry": True, 101 dataList.append({
102 "header": QCoreApplication.translate( 102 "programEntry": True,
103 "EricdocPlugin", "Qt Help Tools"), 103 "header": QCoreApplication.translate(
104 "exe": exe, 104 "EricdocPlugin", "Qt Help Tools"),
105 "versionCommand": '-v', 105 "exe": exe,
106 "versionStartsWith": 'Qt', 106 "versionCommand": '-v',
107 "versionPosition": -1, 107 "versionStartsWith": 'Qt',
108 "version": "", 108 "versionPosition": -1,
109 "versionCleanup": (0, -1), 109 "version": "",
110 }) 110 "versionCleanup": (0, -1),
111 if not Utilities.isWindowsPlatform(): 111 })
112 else:
112 # 2.2 location starting with 6.3.0 (Linux and macOS) 113 # 2.2 location starting with 6.3.0 (Linux and macOS)
113 exe = os.path.join( 114 exe = os.path.join(
114 Utilities.getQtBinariesPath(libexec=True), 115 Utilities.getQtBinariesPath(libexec=True),
115 Utilities.generateQtToolName('qhelpgenerator') 116 Utilities.generateQtToolName('qhelpgenerator')
116 ) 117 )

eric ide

mercurial