src/eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9420
92810aebc909
parent 9413
80c06d472826
child 9448
ea215f7afab3
equal deleted inserted replaced
9419:175ec2fe27ca 9420:92810aebc909
6 """ 6 """
7 Module implementing the Ericdoc plugin. 7 Module implementing the Ericdoc plugin.
8 """ 8 """
9 9
10 import os 10 import os
11 import sys
12 11
13 from PyQt6.QtCore import QObject, QCoreApplication 12 from PyQt6.QtCore import QObject, QCoreApplication
14 from PyQt6.QtWidgets import QDialog 13 from PyQt6.QtWidgets import QDialog
15 14
16 from eric7.EricWidgets.EricApplication import ericApp 15 from eric7.EricWidgets.EricApplication import ericApp
54 # 1. eric7_doc 53 # 1. eric7_doc
55 exe = "eric7_doc" 54 exe = "eric7_doc"
56 if Utilities.isWindowsPlatform(): 55 if Utilities.isWindowsPlatform():
57 for exepath in ( 56 for exepath in (
58 getConfig("bindir"), 57 getConfig("bindir"),
59 os.path.join(sys.exec_prefix, "Scripts"), 58 Utilities.getPythonScriptsDirectory(),
60 ): 59 ):
61 found = False 60 found = False
62 for ext in (".exe", ".cmd", ".bat"): 61 for ext in (".exe", ".cmd", ".bat"):
63 exe_ = os.path.join(exepath, exe + ext) 62 exe_ = os.path.join(exepath, exe + ext)
64 if os.path.exists(exe_): 63 if os.path.exists(exe_):
68 if found: 67 if found:
69 break 68 break
70 else: 69 else:
71 for exepath in ( 70 for exepath in (
72 getConfig("bindir"), 71 getConfig("bindir"),
73 os.path.join(sys.exec_prefix, "bin"), 72 Utilities.getPythonScriptsDirectory(),
74 ): 73 ):
75 exe_ = os.path.join(exepath, exe) 74 exe_ = os.path.join(exepath, exe)
76 if os.path.exists(exe_): 75 if os.path.exists(exe_):
77 exe = exe_ 76 exe = exe_
78 break 77 break

eric ide

mercurial