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_): |