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 """ |