Fixed an issue where the eric7 package could not be found by the jedi client process. eric7

Thu, 22 Dec 2022 09:54:30 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 22 Dec 2022 09:54:30 +0100
branch
eric7
changeset 9637
e3f0fc3bb6ff
parent 9636
926cb5408961
child 9638
6ee095b9d3bd

Fixed an issue where the eric7 package could not be found by the jedi client process.

src/eric7/JediInterface/JediClient.py file | annotate | diff | comparison | revisions
--- a/src/eric7/JediInterface/JediClient.py	Thu Dec 22 09:35:17 2022 +0100
+++ b/src/eric7/JediInterface/JediClient.py	Thu Dec 22 09:54:30 2022 +0100
@@ -8,6 +8,7 @@
 """
 
 import contextlib
+import os
 import sys
 
 SuppressedException = Exception
@@ -20,6 +21,7 @@
 except ImportError:
     sys.exit(42)
 
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
 from eric7.EricNetwork.EricJsonClient import EricJsonClient
 
 

eric ide

mercurial