Plugins/PluginEricdoc.py

changeset 394
da5696492639
parent 308
f25c7e8802b8
child 398
5b5636320dca
child 792
a13346916170
equal deleted inserted replaced
393:5175a3a636e1 394:da5696492639
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the Ericdoc plugin. 7 Module implementing the Ericdoc plugin.
8 """ 8 """
9
10 import os
9 11
10 from PyQt4.QtCore import QObject, SIGNAL 12 from PyQt4.QtCore import QObject, SIGNAL
11 from PyQt4.QtGui import QDialog, QApplication 13 from PyQt4.QtGui import QDialog, QApplication
12 14
13 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
16 18
17 from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog 19 from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog
18 from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog 20 from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog
19 21
20 import Utilities 22 import Utilities
23
24 from eric5config import getConfig
21 25
22 # Start-Of-Header 26 # Start-Of-Header
23 name = "Ericdoc Plugin" 27 name = "Ericdoc Plugin"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 28 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 29 autoactivate = True
43 @return dictionary containing the data to query the presence of 47 @return dictionary containing the data to query the presence of
44 the executable 48 the executable
45 """ 49 """
46 exe = 'eric5-doc' 50 exe = 'eric5-doc'
47 if Utilities.isWindowsPlatform(): 51 if Utilities.isWindowsPlatform():
48 exe += '.bat' 52 exe = os.path.join(getConfig("bindir"), exe +'.bat')
49 53
50 data = { 54 data = {
51 "programEntry" : True, 55 "programEntry" : True,
52 "header" : QApplication.translate("EricdocPlugin", 56 "header" : QApplication.translate("EricdocPlugin",
53 "Eric5 Documentation Generator"), 57 "Eric5 Documentation Generator"),

eric ide

mercurial