src/eric7/JediInterface/JediClient.py

branch
eric7
changeset 9637
e3f0fc3bb6ff
parent 9576
be9f8e7e42e0
child 9653
e67609152c5e
equal deleted inserted replaced
9636:926cb5408961 9637:e3f0fc3bb6ff
6 """ 6 """
7 Module implementing the Jedi client of eric7. 7 Module implementing the Jedi client of eric7.
8 """ 8 """
9 9
10 import contextlib 10 import contextlib
11 import os
11 import sys 12 import sys
12 13
13 SuppressedException = Exception 14 SuppressedException = Exception
14 15
15 modulePath = sys.argv[-1] # it is always the last parameter 16 modulePath = sys.argv[-1] # it is always the last parameter
18 try: 19 try:
19 import jedi 20 import jedi
20 except ImportError: 21 except ImportError:
21 sys.exit(42) 22 sys.exit(42)
22 23
24 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
23 from eric7.EricNetwork.EricJsonClient import EricJsonClient 25 from eric7.EricNetwork.EricJsonClient import EricJsonClient
24 26
25 27
26 class JediClient(EricJsonClient): 28 class JediClient(EricJsonClient):
27 """ 29 """

eric ide

mercurial