src/eric7/Plugins/PluginEricdoc.py

branch
eric7
changeset 9420
92810aebc909
parent 9413
80c06d472826
child 9448
ea215f7afab3
--- a/src/eric7/Plugins/PluginEricdoc.py	Tue Oct 18 17:02:51 2022 +0200
+++ b/src/eric7/Plugins/PluginEricdoc.py	Tue Oct 18 17:48:03 2022 +0200
@@ -8,7 +8,6 @@
 """
 
 import os
-import sys
 
 from PyQt6.QtCore import QObject, QCoreApplication
 from PyQt6.QtWidgets import QDialog
@@ -56,7 +55,7 @@
     if Utilities.isWindowsPlatform():
         for exepath in (
             getConfig("bindir"),
-            os.path.join(sys.exec_prefix, "Scripts"),
+            Utilities.getPythonScriptsDirectory(),
         ):
             found = False
             for ext in (".exe", ".cmd", ".bat"):
@@ -70,7 +69,7 @@
     else:
         for exepath in (
             getConfig("bindir"),
-            os.path.join(sys.exec_prefix, "bin"),
+            Utilities.getPythonScriptsDirectory(),
         ):
             exe_ = os.path.join(exepath, exe)
             if os.path.exists(exe_):

eric ide

mercurial