--- a/src/eric7/Plugins/PluginEricapi.py Tue Oct 18 17:02:51 2022 +0200 +++ b/src/eric7/Plugins/PluginEricapi.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 @@ -53,7 +52,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"): @@ -67,7 +66,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_):